Skip to content

Commit

Permalink
Add some warnings that got lost back to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
evolarjun committed Jun 25, 2019
1 parent 978d337 commit afbb7c5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@ SVNREV := -D'SVN_REV="$(VERSION_STRING)"'
PREFIX ?= /usr/local
INSTALL=install

CPPFLAGS = -std=gnu++11 -pthread -malign-double -fno-math-errno -O3 $(SVNREV)
CPPFLAGS = -std=gnu++11 -pthread -malign-double -fno-math-errno -O3 $(SVNREV) \
-Waddress -Warray-bounds=1 -Wbool-compare -Wbool-operation -Wc++11-compat -Wc++14-compat -Wchar-subscripts -Wcomment \
-Wformat -Wint-in-bool-context -Winit-self -Wlogical-not-parentheses -Wmaybe-uninitialized -Wmemset-elt-size -Wmemset-transposed-args \
-Wnarrowing -Wnonnull -Wnonnull-compare -Wopenmp-simd -Wparentheses -Wreorder -Wreturn-type \
-Wsequence-point -Wsign-compare -Wsizeof-pointer-memaccess -Wstrict-aliasing -Wstrict-overflow=1 -Wswitch -Wtautological-compare \
-Wtrigraphs -Wuninitialized -Wunknown-pragmas -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Wvolatile-register-var \
-Wextra \
-Wcast-align -Wconversion -Wdeprecated-declarations -Wformat -Winit-self -Wlogical-op \
-Wmissing-braces -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-include-dirs \
-Woverloaded-virtual -pedantic -Wparentheses -Wpointer-arith -Wsequence-point -Wshadow -Wunused \
-Wsuggest-attribute=format -Wswitch -Wuninitialized -Wsign-conversion -Wuseless-cast

CXX=g++
COMPILE.cpp= $(CXX) $(CPPFLAGS) -c
Expand Down

0 comments on commit afbb7c5

Please sign in to comment.