]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add more Werror=... flags
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 12 Feb 2022 11:58:22 +0000 (12:58 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 12 Feb 2022 14:04:32 +0000 (15:04 +0100)
configure.ac

index cd036c78e332cb8d66e0b7656accd98146b418c4..e598b927e1aa2c6e0d4d6152080f235e2ffeb2b7 100644 (file)
@@ -126,13 +126,19 @@ TEST_EXTRA_CFLAGS="-Werror=init-self \
 -Werror=return-type \
 -Werror=sequence-point \
 -Werror=uninitialized \
+-Werror=init-self \
+-Werror=int-in-bool-context \
 -Werror=int-to-pointer-cast \
 -Werror=pointer-to-int-cast \
 -Werror=compare-distinct-pointer-types \
 -Werror=empty-body \
+-Werror=comment \
+-Werror=strict-overflow \
 -Wformat=2 \
 -Werror=format-security \
 -Werror=format-nonliteral \
+-Werror=format-overflow=2 \
+-Werror=format-truncation=2 \
 -Werror=int-conversion \
 -Werror=duplicated-branches \
 -Werror=duplicated-cond \
@@ -142,9 +148,12 @@ TEST_EXTRA_CFLAGS="-Werror=init-self \
 -Werror=missing-declarations \
 -Werror=missing-prototypes \
 -Werror=strict-prototypes \
+-Werror=bool-compare \
 -Werror=tautological-pointer-compare \
+-Werror=logical-not-parentheses \
 -Werror=address \
 -Werror=array-bounds \
+-Werror=array-parameter=2 \
 -Werror=enum-conversion"
 
 TEST_CFLAGS=