This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/64526] No warning on function call with excessive arguments
- From: "rth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Jan 2015 19:02:41 +0000
- Subject: [Bug c/64526] No warning on function call with excessive arguments
- Auto-submitted: auto-generated
- References: <bug-64526-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64526
Richard Henderson <rth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |rth at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Richard Henderson <rth at gcc dot gnu.org> ---
Not a bug -- fn1 is not a function with no arguments,
but an unprototyped function. To get a function with
no arguments you must write
void fn1 (void) {}
This is C, not C++.