From fbc40c7b117b523eceb9aa58d6086bde701f1299 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 1 Oct 2022 01:24:04 +0100 Subject: [PATCH] configure.ac: Fix recognising -Wformat-security with Clang Before: ``` checking whether clang accepts -fstack-protector... yes checking whether clang accepts -D_FORTIFY_SOURCE... yes checking whether clang accepts -Wformat-security... no ``` After: ``` checking whether clang accepts -fstack-protector... yes checking whether clang accepts -Wformat-security... yes checking whether clang accepts -D_FORTIFY_SOURCE... yes ``` Signed-off-by: Sam James --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5c46d19..4cdb2ff 100644 --- a/configure.ac +++ b/configure.ac @@ -34,8 +34,8 @@ if test -n "$GCC"; then CFLAGS="$CFLAGS -Wall -Wshadow -Wwrite-strings" GCC_WEXTRA GCC_STACK_PROTECT_CC - GCC_FORTIFY_SOURCE GCC_FORMAT_SECURITY + GCC_FORTIFY_SOURCE dnl Uncomment the lines below for testing with stricter warnings. dnl CFLAGS="$CFLAGS -pedantic -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline " dnl Uncomment the line below to check malloc/free with electric fence -- 2.43.0