[Bug c/16476] GCC ignores mismatched prototypes involving integers

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 12 04:09:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-12 04:08 -------
void drift(); is not really a prototype.  It is an old style (K&R) function declaration which is needed to 
support because of the C standard, it means that it can take any amount of arguments.  This is unlike C
++ wher it means the same as "void drift(void);".

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16476



More information about the Gcc-bugs mailing list