Every time I run a makefile at work I get this warning from C++ :

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++

does anyone know how to quiet it? We are compiling for ecos, cygwin and linux, with a combination of C and C++ files.


Make search in all your makefiles for the keyword "-Wstrict-prototypes" and remove it. This is a compiler option that is not necessary (i.e. just a warning) and it must be specified literally somewhere in the makefile (or in many makefiles) so you should be able to just remove it. If you are lucky, the person who wrote the makefiles did his job correctly and lumped all the flags into two variables like CFLAGS and CXXFLAGS (that's just a naming convention, the actual names could differ), in which case, you only have to remove it from CXXFLAG (the C++ compiler flags).