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

Compiler warning in _ctypes_test.c #74125

Closed
serhiy-storchaka opened this issue Mar 29, 2017 · 8 comments
Closed

Compiler warning in _ctypes_test.c #74125

serhiy-storchaka opened this issue Mar 29, 2017 · 8 comments
Labels
3.7 (EOL) end of life build The build process and cross-build topic-ctypes

Comments

@serhiy-storchaka
Copy link
Member

BPO 29939
Nosy @vsajip, @vstinner, @serhiy-storchaka
PRs
  • bpo-29939: suppress compiler warnings in _ctypes_test #902
  • [3.6] bpo-29939: suppress compiler warnings in _ctypes_test (#902) #1038
  • [3.5] bpo-29939: suppress compiler warnings in _ctypes_test (#902) #1039
  • 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 2017-04-07.22:24:54.189>
    created_at = <Date 2017-03-29.06:44:44.117>
    labels = ['ctypes', 'build', '3.7']
    title = 'Compiler warning in _ctypes_test.c'
    updated_at = <Date 2017-04-07.22:24:54.187>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2017-04-07.22:24:54.187>
    actor = 'vinay.sajip'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-04-07.22:24:54.189>
    closer = 'vinay.sajip'
    components = ['ctypes']
    creation = <Date 2017-03-29.06:44:44.117>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 29939
    keywords = []
    message_count = 8.0
    messages = ['290771', '290778', '291231', '291232', '291233', '291234', '291304', '291305']
    nosy_count = 3.0
    nosy_names = ['vinay.sajip', 'vstinner', 'serhiy.storchaka']
    pr_nums = ['902', '1038', '1039']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'compile error'
    url = 'https://bugs.python.org/issue29939'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7']

    @serhiy-storchaka
    Copy link
    Member Author

    Compiler warning was introduced by bpo-29565.

    /home/serhiy/py/cpython/Modules/_ctypes/_ctypes_test.c: In function ‘_testfunc_large_struct_update_value’:
    /home/serhiy/py/cpython/Modules/_ctypes/_ctypes_test.c:53:42: warning: parameter ‘in’ set but not used [-Wunused-but-set-parameter]
    _testfunc_large_struct_update_value(Test in)
    ^

    @serhiy-storchaka serhiy-storchaka added 3.7 (EOL) end of life topic-ctypes build The build process and cross-build labels Mar 29, 2017
    @vsajip
    Copy link
    Member

    vsajip commented Mar 29, 2017

    Yes, this is on my radar. I'm planning to make some changes to this file in response to bpo-22273, and will stick in a (void) in to get rid of the warning.

    @vsajip
    Copy link
    Member

    vsajip commented Apr 6, 2017

    Should be fixed by 164d30e.

    @vsajip vsajip closed this as completed Apr 6, 2017
    @serhiy-storchaka
    Copy link
    Member Author

    Thanks Vinay!

    @vstinner
    Copy link
    Member

    vstinner commented Apr 6, 2017

    IHMO it's worth it to backport the fix, since Benjamin showed that GCC optimizer removes the function body and so defeat the purpose of the test.

    @vsajip
    Copy link
    Member

    vsajip commented Apr 6, 2017

    Added relevant "needs backport" tags to PR, will get to it soon. Reopening till then.

    @vsajip vsajip reopened this Apr 6, 2017
    @vsajip
    Copy link
    Member

    vsajip commented Apr 7, 2017

    New changeset d0d575a by Vinay Sajip in branch '3.6':
    bpo-29939: suppress compiler warnings in _ctypes_test (bpo-1038)
    d0d575a

    @vsajip
    Copy link
    Member

    vsajip commented Apr 7, 2017

    New changeset ae0915e by Vinay Sajip in branch '3.5':
    Closes bpo-29939: suppress compiler warnings in _ctypes_test (bpo-1039)
    ae0915e

    @vsajip vsajip closed this as completed Apr 7, 2017
    @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.7 (EOL) end of life build The build process and cross-build topic-ctypes
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants