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/16476] GCC ignores mismatched prototypes involving integers


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


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