This is the mail archive of the gcc@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: Bootstrap with -Wmissing-prototypes doesn't work for C++


On Fri, 19 Aug 2011, Joe Buck wrote:

I'm confused. Since C++ treats the lack of a prototype as a hard error, what does it mean to make -Wmissing-prototypes useless?

-Wmissing-prototype looks very similar to -Wmissing-declarations (which is supported in C++ but documented as C/objC only). It requires that you first have:


int f(int);
and only then:
int f(int){return 0;}

--
Marc Glisse


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