Enable more warnings with GCC

This commit is contained in:
Giulio Camuffo 2011-11-21 22:32:34 +01:00
parent 353c42effe
commit ba3cac994e

View File

@ -24,7 +24,7 @@ ifeq "$(HAVE_GCC)" "1"
CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder
# Enable even more warnings...
CXXFLAGS+= -Wpointer-arith -Wcast-qual
CXXFLAGS+= -Wshadow -Wnon-virtual-dtor -Wwrite-strings
CXXFLAGS+= -Wshadow -Wnon-virtual-dtor -Wwrite-strings -Wextra -pedantic
# Currently we disable this gcc flag, since it will also warn in cases,
# where using GCC_PRINTF (means: __attribute__((format(printf, x, y))))