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

2.7 modern compiler warnings #82911

Closed
benjaminp opened this issue Nov 7, 2019 · 4 comments
Closed

2.7 modern compiler warnings #82911

benjaminp opened this issue Nov 7, 2019 · 4 comments
Labels
build The build process and cross-build

Comments

@benjaminp
Copy link
Contributor

BPO 38730
Nosy @benjaminp
PRs
  • [2.7] bpo-38730: Fix -Wstringop-truncation warnings. #17075
  • [2.7] bpo-38730: Remove usage of stpncpy as it's not supported on MSVC 2008. #17081
  • [2.7] bpo-38730: Replace strncpy in import.c with memcpy. #17633
  • 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-11-08.03:31:29.550>
    created_at = <Date 2019-11-07.04:53:19.425>
    labels = ['build']
    title = '2.7 modern compiler warnings'
    updated_at = <Date 2019-12-17.00:40:03.917>
    user = 'https://github.com/benjaminp'

    bugs.python.org fields:

    activity = <Date 2019-12-17.00:40:03.917>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-11-08.03:31:29.550>
    closer = 'benjamin.peterson'
    components = ['Build']
    creation = <Date 2019-11-07.04:53:19.425>
    creator = 'benjamin.peterson'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38730
    keywords = ['patch']
    message_count = 4.0
    messages = ['356166', '356191', '356192', '358528']
    nosy_count = 1.0
    nosy_names = ['benjamin.peterson']
    pr_nums = ['17075', '17081', '17633']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue38730'
    versions = ['Python 2.7']

    @benjaminp
    Copy link
    Contributor Author

    GCC 9's -Wstringop-truncation warnings trigger several times in 2.7. Some of these instances are all actual bugs. In all cases, we should clarify the code to make the compiler happy.

    @benjaminp benjaminp added the build The build process and cross-build label Nov 7, 2019
    @benjaminp
    Copy link
    Contributor Author

    New changeset f32bcf8 by Benjamin Peterson in branch '2.7':
    [2.7] bpo-38730: Fix -Wstringop-truncation warnings. (GH-17075)
    f32bcf8

    @benjaminp
    Copy link
    Contributor Author

    New changeset 9f94e52 by Benjamin Peterson in branch '2.7':
    bpo-38730: Remove usage of stpncpy as it's not supported on MSVC 2008. (GH-17081)
    9f94e52

    @benjaminp
    Copy link
    Contributor Author

    New changeset 052f47e by Benjamin Peterson in branch '2.7':
    bpo-38730: Replace strncpy in import.c with memcpy. (GH-17633)
    052f47e

    @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
    build The build process and cross-build
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant