diff options
author | Max Horn | 2003-07-16 20:36:38 +0000 |
---|---|---|
committer | Max Horn | 2003-07-16 20:36:38 +0000 |
commit | 6e7c37fb0a484eecfae20d871f92d985beb1763c (patch) | |
tree | ac674e7bdbda47c98d9eeb4a19b7c999907e7b21 /Makefile | |
parent | 91ee8e1c10faa2052bec5489e940c93818fbcfb8 (diff) | |
download | scummvm-rg350-6e7c37fb0a484eecfae20d871f92d985beb1763c.tar.gz scummvm-rg350-6e7c37fb0a484eecfae20d871f92d985beb1763c.tar.bz2 scummvm-rg350-6e7c37fb0a484eecfae20d871f92d985beb1763c.zip |
disable some more warnings which cause problems with gcc 2.95 or with bad system headers
svn-id: r9051
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -26,14 +26,20 @@ OBJS := # Turn on useful warnings CXXFLAGS+= -Wall -pedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -CXXFLAGS+= -Wshadow -Wstrict-prototypes -Wuninitialized -Wimplicit +CXXFLAGS+= -Wshadow -Wstrict-prototypes -Wuninitialized -Wimplicit -Wundef CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder -CXXFLAGS+= -Wwrite-strings -Wredundant-decls -Wdisabled-optimization -fcheck-new -Wundef -CXXFLAGS+= -Wctor-dtor-privacy -Wnon-virtual-dtor +CXXFLAGS+= -Wwrite-strings -fcheck-new -Wctor-dtor-privacy -Wnon-virtual-dtor + # Seems GCC 2.95 doesn't support the following, so we do not yet turn them # on by default (but I'd strongly recommend to all GCC 2.95 users to update # to a better compiler like GCC 3.x). -# CXXFLAGS+= -ansi -W -Wno-unused-parameter -Woverloaded-virtual -Wfloat-equal +# CXXFLAGS+= -ansi -W -Wno-unused-parameter -Woverloaded-virtual -Wdisabled-optimization -Wfloat-equal + +# The following causes problems on some systems where the system header +# contain duplicate declarations already. That's really a bug in the +# system headers, but since it causes lots of warnings on those systems, +# we don't enable it by default +#CXXFLAGS+= -Wredundant-decls # Load the build rules & settings for the chosen backend -include build.rules |