summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-03-06 02:36:48 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-03-13 13:58:45 +0100
commit9d9d5e810751954594c793383b07ca526c647350 (patch)
tree9e9f95c56e7911caca1aca1e4590c3388a24fdcb
parent500dc0700136092692d1cceba4e5c1639bcfc825 (diff)
downloadapt-9d9d5e810751954594c793383b07ca526c647350.tar.gz
enable various compiler warnings
Now that the last few commits resolved the issues we can finally enable a bunch of compiler warnings by default. Git-Dch: ignore
-rw-r--r--buildlib/environment.mak.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/buildlib/environment.mak.in b/buildlib/environment.mak.in
index fc859951e..9cc449573 100644
--- a/buildlib/environment.mak.in
+++ b/buildlib/environment.mak.in
@@ -7,9 +7,13 @@ PACKAGE_MAIL = @PACKAGE_MAIL@
# C++ compiler options
CC = @CC@
-CPPFLAGS+= @CPPFLAGS@ @DEFS@ -D_REENTRANT -Wall
+CPPFLAGS+= @CPPFLAGS@ @DEFS@ -D_REENTRANT -D_FORTIFY_SOURCE=2
CXX = @CXX@
-CXXFLAGS+= @CXXFLAGS@
+CXXFLAGS+= @CXXFLAGS@ -Wall -Wextra
+CXXFLAGS+= -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations
+CXXFLAGS+= -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn
+# a bit too pedantic to be run by default
+#CXXFLAGS+= -Wpedantic -Wno-long-long -Wno-vla -Wno-variadic-macros
NUM_PROCS = @NUM_PROCS@
# Linker stuff
@@ -68,4 +72,3 @@ else
# Do not know how to create shared libraries here.
ONLYSTATICLIBS = yes
endif
-