1 WARNINGS
= -Wall
-Wextra
2 WARNINGS
+= -Wwrite-strings
-Wcast-qual
-Wpointer-arith
-Wsign-compare
4 WARNINGS
+= -Wmissing-declarations
6 ifneq ($(TARGET
),ANDROID
)
7 WARNINGS
+= -Wredundant-decls
10 CXXFLAGS
+= $(WARNINGS
)
11 CXXFLAGS
+= -Wmissing-noreturn
13 # disable some warnings, we're not ready for them yet
14 CXXFLAGS
+= -Wno-unused-parameter
15 CXXFLAGS
+= -Wno-missing-field-initializers
16 CXXFLAGS
+= -Wcast-align
21 CFLAGS
+= -Wmissing-prototypes
-Wstrict-prototypes
23 ifneq ($(TARGET
),ANDROID
)
24 CFLAGS
+= -Wnested-externs
27 # make warnings fatal (for perfectionists)
30 ifneq ($(TARGET
),CYGWIN
)
40 #CXXFLAGS += -pedantic
41 #CXXFLAGS += -pedantic-errors
43 # -Wdisabled-optimization
44 # -Wunused -Wshadow -Wunreachable-code