Skip to content

Compilation warning on GCC version 7.4.0-1ubuntu1~18.04.1 #82050

Closed

Description

@hansrajdas
BPO 37869
Nosy @vstinner, @hansrajdas
PRs
  • bpo-37732 : Fix unintialized pointer warning in Objects/obmalloc.c #15309
  • Superseder
  • bpo-37732: Possible uninitialized variable in Objects/obmalloc.c
  • Files
  • warning-2019-08-15 01-15-06.png: Objects/obmalloc.c
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-08-19.10:15:34.891>
    created_at = <Date 2019-08-15.20:30:41.686>
    labels = ['type-bug', '3.9', 'build']
    title = 'Compilation warning on GCC version 7.4.0-1ubuntu1~18.04.1'
    updated_at = <Date 2019-08-19.10:15:42.569>
    user = 'https://github.com/hansrajdas'

    bugs.python.org fields:

    activity = <Date 2019-08-19.10:15:42.569>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-08-19.10:15:34.891>
    closer = 'vstinner'
    components = ['Build']
    creation = <Date 2019-08-15.20:30:41.686>
    creator = 'hansrajdas'
    dependencies = []
    files = ['48546']
    hgrepos = []
    issue_num = 37869
    keywords = []
    message_count = 2.0
    messages = ['349824', '349951']
    nosy_count = 2.0
    nosy_names = ['vstinner', 'hansrajdas']
    pr_nums = ['15309']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '37732'
    type = 'behavior'
    url = 'https://bugs.python.org/issue37869'
    versions = ['Python 3.9']

    Activity

    1. hansrajdas commented on Aug 15, 2019

      hansrajdasmannequin
      MannequinAuthor

      I am facing below compilation warning on compilation python source:


      gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initial
      izers -Werror=implicit-function-declaration -I./Include/internal -I. -I./Include -DPy_BUILD_CORE -o Objects/obmalloc.o Objects/obmalloc.c
      Objects/obmalloc.c: In function __PyObject_Malloc_:
      Objects/obmalloc.c:1646:16: warning: _ptr_ may be used uninitialized in this function [-Wmaybe-uninitialized]
      return ptr;
      ^~~


      This is another thread having suggestions from Victor: #15293

    2. added
      buildThe build process and cross-build
      type-bugAn unexpected behavior, bug, or error
      on Aug 15, 2019
    3. vstinner commented on Aug 19, 2019

      @vstinner
      Member

      Duplicate of bpo-37732.

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifebuildThe build process and cross-buildtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions