https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84531
Bug ID: 84531 Summary: c/c++: bogus warning for functions with different argument lengths but compatible arguments Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: siddhesh at gotplt dot org Target Milestone: --- gcc trunk throws a bogus warning about incompatible function cast when the cast target and the function have different argument lengths but the same arguments for the common subset. An example of this is the PyCFunction <-> PyCFunctionWithKeywords cast in python. Patch posted along with test case: https://gcc.gnu.org/ml/gcc-patches/2018-02/msg01315.html