public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cyeoh at samba dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c/19994] warn on parameter name mismatch Date: Wed, 16 Feb 2005 15:16:00 -0000 [thread overview] Message-ID: <20050216070537.32675.qmail@sourceware.org> (raw) In-Reply-To: <20050216043359.19994.cyeoh@samba.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
next prev parent reply other threads:[~2005-02-16 7:06 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-16 11:10 [Bug c/19994] New: " cyeoh at samba dot org 2005-02-16 11:13 ` [Bug c/19994] " pinskia at gcc dot gnu dot org 2005-02-16 15:16 ` cyeoh at samba dot org [this message] 2005-02-16 15:27 ` pinskia at gcc dot gnu dot org 2005-02-16 16:30 ` schlie at comcast dot net 2005-02-16 17:02 ` schlie at comcast dot net 2005-02-16 18:04 ` joseph at codesourcery dot com 2005-06-19 22:55 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050216070537.32675.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).