diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-06 14:34:00 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-08 13:11:50 +0000 |
commit | a4dddfd5f121c9cc74e05e08a568c6a9febfd56f (patch) | |
tree | 5cb718582a9c9fc4d79a4a0833f3a4c8027cb821 /CMakeLists.txt | |
parent | 7ddc865cdeb0be9eb929cbbefae1c92009683291 (diff) |
Mark format strings with the GNU printf attribute.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a9195dc96..2d13480b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -172,7 +172,7 @@ if(MSVC) # Otherwise, we're not using Visual Studio else() # Set the compile flags to have all warnings on (including shadowed variables) - set(CXXFLAGS "${CXXFLAGS} -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wpedantic -Wno-unused-parameter ${CMAKE_CXX_FLAGS}") + set(CXXFLAGS "${CXXFLAGS} -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wpedantic -Wno-format-nonliteral -Wno-format-zero-length -Wno-unused-parameter ${CMAKE_CXX_FLAGS}") endif() # If CMake has found that the given system requires a special library for dl* calls, include it with the linker flags |