From d8992bd13b612e59147e7db50fb7d8c0de1cbb91 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 5 Nov 2024 14:49:01 +0200 Subject: [PATCH] Add -Wformat-security to our default build flags Kinda shocking that this isn't included in -Wall --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f2a820b267..923265171b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -399,7 +399,7 @@ configure_file(config.h.in config.h) add_compile_definitions(HAVE_CONFIG_H) -add_compile_options(-Wall -Wpointer-arith -Wempty-body) +add_compile_options(-Wall -Wpointer-arith -Wempty-body -Wformat-security) if (ENABLE_WERROR) add_compile_options(-Werror) endif()