This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19994] warn on parameter name mismatch
- From: "cyeoh at samba dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2005 07:05:37 -0000
- Subject: [Bug c/19994] warn on parameter name mismatch
- References: <20050216043359.19994.cyeoh@samba.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From cyeoh at samba dot org 2005-02-16 07:05 -------
prototypes in header files can get out of sync with the function definitions (or
parameters are simply get swapped around accidentally) - even with experienced
programmers.
Users of that interface then get unexpect behaviour. I still think an optional
warning would be useful - and it wouldn't be on by default.
I think it would be fairly unusual that you would want the prototype parameter
names to not match the definition. It wouldn't have to warn if the parameter
names in the prototype were deliberately omitted.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19994