From b0d7eac72858c0f1cdee7ab8dc3713a20937b3d2 Mon Sep 17 00:00:00 2001 From: Thomas Beutlich Date: Wed, 24 Jan 2024 13:04:44 +0100 Subject: [PATCH] Warn on sign mismatches for format specifiers --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6fdc789..3607b1c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -119,7 +119,7 @@ target_include_directories(${PACKAGE} if(MSVC) target_compile_options(${PACKAGE} PRIVATE /W4) else() - target_compile_options(${PACKAGE} PRIVATE -Wall -Wextra -pedantic) + target_compile_options(${PACKAGE} PRIVATE -Wall -Wextra -Wformat-signedness -pedantic) endif() if(WIN32 AND NOT CYGWIN)