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/64526] No warning on function call with excessive arguments


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


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