Add extra flags to detect more issues

This commit is contained in:
Luis Diaz Mas 2017-11-01 21:38:04 +01:00
parent e52b3e77cf
commit 78ac8ebf9e

View File

@ -29,6 +29,9 @@ if ( MINGW OR UNIX ) # MINGW, Linux, APPLE, CYGWIN
" -Wdouble-promotion"
" -Wshadow"
" -Wuseless-cast"
" -Wpointer-arith" # This warning is also enabled by -Wpedantic
" -Wformat=2"
" -Warray-bounds=2"
#" -Wold-style-cast"
)
endif ()
@ -60,6 +63,9 @@ if ( MINGW OR UNIX ) # MINGW, Linux, APPLE, CYGWIN
" -Wconditional-uninitialized"
" -Wdirect-ivar-access"
" -Weffc++"
" -Wpointer-arith"
" -Wformat=2"
#" -Warray-bounds" # Enabled by default
# These two raises lot of warnings. Use them wisely
#" -Wconversion"
#" -Wold-style-cast"