This is the mail archive of the gcc-help@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]

RE: trying to understand: "warning: function declaration isn't a prototype"


I believe the issue is that empty parentheses do not constitute a valid
prototype and that to be truly conformant you would have to write:
    extern int foo (void);

oh man that is so obvious it hurts to be discussing it .. thanks for pointing that out! :)


--

;

Jay Vaughan


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