fixed default warnings for C++

This commit is contained in:
2026-06-07 16:36:28 +05:00
parent 6a556572b4
commit b6ade8c31a

View File

@@ -6,7 +6,7 @@ CMP_C="gcc"
CMP_CPP="g++"
STD_C="c99"
STD_CPP="c++11"
WARN_C="-Wall -Wextra
WARN_COMMON="-Wall -Wextra
-Wduplicated-branches
-Wduplicated-cond
-Wformat=2
@@ -14,9 +14,10 @@ WARN_C="-Wall -Wextra
-Wshadow
-Werror=return-type
-Werror=pointer-arith
-Werror=init-self
-Werror=init-self"
WARN_C="$WARN_COMMON
-Werror=incompatible-pointer-types"
WARN_CPP="$WARN_C"
WARN_CPP="$WARN_COMMON"
SRC_C="$(find src -name '*.c')"
SRC_CPP="$(find src -name '*.cpp')"