fixed default warnings for C++
This commit is contained in:
@@ -6,7 +6,7 @@ CMP_C="gcc"
|
|||||||
CMP_CPP="g++"
|
CMP_CPP="g++"
|
||||||
STD_C="c99"
|
STD_C="c99"
|
||||||
STD_CPP="c++11"
|
STD_CPP="c++11"
|
||||||
WARN_C="-Wall -Wextra
|
WARN_COMMON="-Wall -Wextra
|
||||||
-Wduplicated-branches
|
-Wduplicated-branches
|
||||||
-Wduplicated-cond
|
-Wduplicated-cond
|
||||||
-Wformat=2
|
-Wformat=2
|
||||||
@@ -14,9 +14,10 @@ WARN_C="-Wall -Wextra
|
|||||||
-Wshadow
|
-Wshadow
|
||||||
-Werror=return-type
|
-Werror=return-type
|
||||||
-Werror=pointer-arith
|
-Werror=pointer-arith
|
||||||
-Werror=init-self
|
-Werror=init-self"
|
||||||
|
WARN_C="$WARN_COMMON
|
||||||
-Werror=incompatible-pointer-types"
|
-Werror=incompatible-pointer-types"
|
||||||
WARN_CPP="$WARN_C"
|
WARN_CPP="$WARN_COMMON"
|
||||||
SRC_C="$(find src -name '*.c')"
|
SRC_C="$(find src -name '*.c')"
|
||||||
SRC_CPP="$(find src -name '*.cpp')"
|
SRC_CPP="$(find src -name '*.cpp')"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user