浏览代码

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.
Orion Poplawski 9 年之前
父节点
当前提交
4ca77bb6db
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Utilities/KWIML/test/CMakeLists.txt

+ 1 - 1
Utilities/KWIML/test/CMakeLists.txt

@@ -10,7 +10,7 @@ endif()
 # Suppress printf/scanf format warnings; we test if the sizes match.
 # Suppress printf/scanf format warnings; we test if the sizes match.
 foreach(lang C CXX)
 foreach(lang C CXX)
   if(KWIML_LANGUAGE_${lang} AND CMAKE_${lang}_COMPILER_ID STREQUAL "GNU")
   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()
   endif()
 endforeach()
 endforeach()