summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorOrion Poplawski <orion@cora.nwra.com>2017-02-27 18:24:39 (GMT)
committerBrad King <brad.king@kitware.com>2017-02-27 18:47:00 (GMT)
commit4ca77bb6db34edc7cae2313c82c769f564fb02ea (patch)
tree8110b17cb37d34b5740d398cb7a661c464ecdc02 /Utilities
parent6cbad490c2fdbd9bdc67b406b9f2dcdc21e08ddb (diff)
downloadCMake-4ca77bb6db34edc7cae2313c82c769f564fb02ea.zip
CMake-4ca77bb6db34edc7cae2313c82c769f564fb02ea.tar.gz
CMake-4ca77bb6db34edc7cae2313c82c769f564fb02ea.tar.bz2
KWIML: Add -Wno-format-security to tolerate -Werror=format-security
When compiling KWIML tests with `-Werror=format-security` we get error: -Wformat-security ignored without -Wformat Therefore we should disable both `format` and `format-security` together.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/KWIML/test/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/KWIML/test/CMakeLists.txt b/Utilities/KWIML/test/CMakeLists.txt
index 4f6f37b..1bf93bb 100644
--- a/Utilities/KWIML/test/CMakeLists.txt
+++ b/Utilities/KWIML/test/CMakeLists.txt
@@ -10,7 +10,7 @@ endif()
# Suppress printf/scanf format warnings; we test if the sizes match.
foreach(lang C CXX)
if(KWIML_LANGUAGE_${lang} AND CMAKE_${lang}_COMPILER_ID STREQUAL "GNU")
- set(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} -Wno-format")
+ set(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} -Wno-format -Wno-format-security")
endif()
endforeach()