From c2c6c55e8d677115abefb82567ab6ef9e7a07eb3 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 26 Jan 2023 14:18:51 +0100 Subject: [PATCH] build: enable format string warnings I thought these were included in `-Wall -Wextra`, but apparently not. Signed-off-by: David Lamparter --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure.ac b/configure.ac index 2d9d4f66b1..48ac4873b8 100644 --- a/configure.ac +++ b/configure.ac @@ -349,6 +349,8 @@ AC_C_FLAG([-fno-omit-frame-pointer]) AC_C_FLAG([-funwind-tables]) AC_C_FLAG([-Wall]) AC_C_FLAG([-Wextra]) +AC_C_FLAG([-Wformat-nonliteral]) +AC_C_FLAG([-Wformat-security]) AC_C_FLAG([-Wstrict-prototypes]) AC_C_FLAG([-Wmissing-prototypes]) AC_C_FLAG([-Wmissing-declarations])