[Bug c/48091] No warning when given function arguments mismatch earlier function definition which GCC assumes to be K&R, even with --std=c99 -pedantic

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jan 23 16:47:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48091

--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> ---
OK, but as the reporter of 64526 said, we should warn at least. We know the
number of parameters (even if there isn't a prototype) and we know the number
of arguments doesn't match it. That warrants a warning.


More information about the Gcc-bugs mailing list