This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/19994] warn on parameter name mismatch


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]