mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
disable some more warnings which cause problems with gcc 2.95 or with bad system headers
svn-id: r9051
This commit is contained in:
parent
91ee8e1c10
commit
6e7c37fb0a
14
Makefile
14
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user