Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ast.c: end_col_offset may be used uninitialized in this function #80059

Closed
vstinner opened this issue Feb 1, 2019 · 2 comments
Closed

ast.c: end_col_offset may be used uninitialized in this function #80059

vstinner opened this issue Feb 1, 2019 · 2 comments
Labels
3.8 only security fixes build The build process and cross-build interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@vstinner
Copy link
Member

vstinner commented Feb 1, 2019

BPO 35878
Nosy @vstinner, @ilevkivskyi, @emilyemorehouse
PRs
  • bpo-35878: Fix compiler warnings about end_col_offset and end_lineno #11735
  • bpo-35878: Fix compiler warnings about end_col_offset and end_lineno #11735
  • bpo-35878: Fix compiler warnings about end_col_offset and end_lineno #11735
  • 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-02-10.15:40:20.022>
    created_at = <Date 2019-02-01.11:22:41.487>
    labels = ['interpreter-core', 'build', '3.8']
    title = 'ast.c: end_col_offset may be used uninitialized in this function'
    updated_at = <Date 2019-02-11.11:31:47.842>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2019-02-11.11:31:47.842>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-02-10.15:40:20.022>
    closer = 'levkivskyi'
    components = ['Interpreter Core']
    creation = <Date 2019-02-01.11:22:41.487>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35878
    keywords = ['patch', 'patch', 'patch']
    message_count = 2.0
    messages = ['334670', '335208']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'levkivskyi', 'emilyemorehouse']
    pr_nums = ['11735', '11735', '11735']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue35878'
    versions = ['Python 3.8']

    @vstinner
    Copy link
    Member Author

    vstinner commented Feb 1, 2019

    https://buildbot.python.org/all/#builders/103/builds/2023

    There are many "end_col_offset may be used uninitialized in this function" warnings. Example:

    In file included from Python/ast.c:7:0:
    Python/ast.c: In functionast_for_funcdef_impl’:
    ./Include/Python-ast.h:484:66: warning: ‘end_col_offsetmay be used uninitialized in this function [-Wmaybe-uninitialized]
     #define FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) _Py_FunctionDef(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
                                                                      ^~~~~~~~~~~~~~~
    Python/ast.c:1738:21: note: ‘end_col_offsetwas declared here
         int end_lineno, end_col_offset;
                         ^~~~~~~~~~~~~~

    @vstinner vstinner added 3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) build The build process and cross-build labels Feb 1, 2019
    @vstinner
    Copy link
    Member Author

    Ivan Levkivskyi fixed the warning with commit 181835d.

    I created bpo-35963 Python/symtable.c: warning: enumeration value ‘FunctionType_kind’ not handled in switch [-Wswitch]" for a remaining warning.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 only security fixes build The build process and cross-build interpreter-core (Objects, Python, Grammar, and Parser dirs)
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants