Skip to content

Commit

Permalink
Warn on sign mismatches for format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
thbeu committed Jan 24, 2024
1 parent a03d7a8 commit fb000ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,10 @@ target_include_directories(${PACKAGE}

if(MSVC)
target_compile_options(${PACKAGE} PRIVATE /W4)
else()
elseif(Clang)
target_compile_options(${PACKAGE} PRIVATE -Wall -Wextra -pedantic)
else()
target_compile_options(${PACKAGE} PRIVATE -Wall -Wextra -Wformat-signedness -pedantic)
endif()

if(WIN32 AND NOT CYGWIN)
Expand Down

0 comments on commit fb000ea

Please sign in to comment.