From da5c68f274c85b97410a3fbc197eea2c26199820 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 5 Oct 2025 16:40:54 +0100 Subject: [PATCH] Disable a harmless warning on Linux. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ca09c68a..5ce846ab9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -159,7 +159,8 @@ 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 -Wformat=2 -Wmissing-format-attribute -Wpedantic -Wno-format-nonliteral -Wno-format-zero-length -Wno-unused-parameter ${CMAKE_CXX_FLAGS}") + set(CXXFLAGS "${CXXFLAGS} -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -Wformat=2 -Wmissing-format-attribute -Wpedantic") + set(CXXFLAGS "${CXXFLAGS} -Wno-format-nonliteral -Wno-format-zero-length -Wno-date-time -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