This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/84531] c/c++: bogus warning for functions with different argument lengths but compatible arguments
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Feb 2018 10:41:17 +0000
- Subject: [Bug c/84531] c/c++: bogus warning for functions with different argument lengths but compatible arguments
- Auto-submitted: auto-generated
- References: <bug-84531-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84531
Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernd.edlinger at hotmail dot de
--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
The suggested wild-card function type for functions taking 2 or more parameters
would be something like this:
PyObject * (*) (PyObject *, PyObject *, ...);
It is still necessary to cast it back to the correct type before calling.