Warning for C Parameter Name Mismatch
Joel Sherrill
joel@rtems.org
Fri Mar 8 22:25:00 GMT 2019
Hi
This may be just an ignorant user question on my part.
Can gcc report when the parameter name in a C prototype
does not match that used in the implementation?
int f(int x);
int f(int y) {...}
We try to fix every warning gcc reports but this is one that gcc
doesn't report for us. It could be we need an extra -Wxxx but
we end up spotting these with Doxygen.
Anything we are missing?
Thanks.
--joel
More information about the Gcc
mailing list