Skip to content

Commit 52ac6af

Browse files
travisgilbert-dellAndreasFuchsTPM
authored andcommitted
Add Wformat-security to Wformat check; Wformat is included only for Wformat-security and Wformat-security can't be checked without Wformat
Signed-off-by: Travis Gilbert <travis.gilbert@dell.com>
1 parent 67119ad commit 52ac6af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

configure.ac

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,7 @@ AS_IF([test x"$enable_hardening" != x"no"], [
314314
add_hardened_c_flag([-Wextra])
315315
AS_IF([test "x$ax_is_release" = "xno"], [add_hardened_c_flag([-Werror])])
316316
317-
add_hardened_c_flag([-Wformat])
318-
add_hardened_c_flag([-Wformat-security])
317+
add_hardened_c_flag([-Wformat -Wformat-security])
319318
add_hardened_c_flag([-Wstack-protector])
320319
add_hardened_c_flag([-fstack-protector-all])
321320
add_hardened_c_flag([-Wstrict-overflow=5])

0 commit comments

Comments
 (0)