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

many warnings with f28 and gcc 8.1.1 #79173

Closed
matrixise opened this issue Oct 15, 2018 · 1 comment
Closed

many warnings with f28 and gcc 8.1.1 #79173

matrixise opened this issue Oct 15, 2018 · 1 comment
Labels
3.8 only security fixes

Comments

@matrixise
Copy link
Member

BPO 34992
Nosy @matrixise
Superseder
  • bpo-33012: Invalid function cast warnings with gcc 8 for METH_NOARGS
  • 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 2018-10-15.13:29:22.176>
    created_at = <Date 2018-10-15.13:23:54.521>
    labels = ['3.8']
    title = 'many warnings with f28 and gcc 8.1.1'
    updated_at = <Date 2018-10-15.13:29:22.175>
    user = 'https://github.com/matrixise'

    bugs.python.org fields:

    activity = <Date 2018-10-15.13:29:22.175>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-10-15.13:29:22.176>
    closer = 'vstinner'
    components = []
    creation = <Date 2018-10-15.13:23:54.521>
    creator = 'matrixise'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34992
    keywords = []
    message_count = 1.0
    messages = ['327752']
    nosy_count = 1.0
    nosy_names = ['matrixise']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '33012'
    type = None
    url = 'https://bugs.python.org/issue34992'
    versions = ['Python 3.8']

    @matrixise
    Copy link
    Member Author

    I use Fedora 28 and gcc (GCC) 8.1.1 20180712 (Red Hat 8.1.1-5)

    and I get a lot of warnings, with the standard config of Python (./configure)

    Objects/call.c: In function '_PyMethodDef_RawFastCallDict':
    Objects/call.c:515:24: warning: cast between incompatible function types from 'PyCFunction' {aka 'struct _object * ()(struct _object *, struct _object *)'} to 'PyObject * ()(PyObject *, PyObject *, PyObject *)' {aka 'struct _object * ()(struct _object *, struct _object *, struct _object *)'} [-Wcast-function-type]
    result = (
    (PyCFunctionWithKeywords)meth) (self, argstuple, kwargs);
    ^
    Objects/call.c:530:20: warning: cast between incompatible function types from 'PyCFunction' {aka 'struct _object * ()(struct _object *, struct _object *)'} to 'PyObject * ()(PyObject *, PyObject * const*, Py_ssize_t)' {aka 'struct _object * ()(struct _object *, struct _object * const, long int)'} [-Wcast-function-type]
    result = ((_PyCFunctionFast)meth) (self, args, nargs);
    ^
    Objects/call.c:538:49: warning: cast between incompatible function types from 'PyCFunction' {aka 'struct _object * (
    )(struct _object *, struct _object *)'} to 'PyObject * ()(PyObject *, PyObject * const, Py_ssize_t, PyObject *)' {aka 'struct _object * ()(struct _object *, struct _object * const, long int, struct _object *)'} [-Wcast-function-type]
    _PyCFunctionFastWithKeywords fastmeth = (_PyCFunctionFastWithKeywords)meth;

    ....

    +- 827 warnings

    @matrixise matrixise added the 3.8 only security fixes label Oct 15, 2018
    @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
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants