[Bug c/19994] warn on parameter name mismatch

joseph at codesourcery dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 16 18:04:00 GMT 2005

------- Additional Comments From joseph at codesourcery dot com  2005-02-16 13:35 -------
Subject: Re:  warn on parameter name mismatch

On Wed, 16 Feb 2005, cyeoh at samba dot org wrote:

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

I think it's quite usual for a header to use a parameter name in a 
reserved namespace (whether the implementation namespace as in glibc 
headers, or beginning with a prefix reserved by a library).  In such a 
case, the library implementation is likely to use a shorter more 
convenient name for the parameter.



More information about the Gcc-bugs mailing list