Ignore format truncation warning on utf8printf.cpp

* We deliberately truncate in some tests, to check our printf behaves
  correctly.
This commit is contained in:
baldurk
2017-10-24 23:01:36 +01:00
parent 85a7fa744e
commit 77dea7095c
+3
View File
@@ -211,6 +211,9 @@ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR APPLE)
if(CMAKE_COMPILER_IS_GNUCXX)
set_property(SOURCE 3rdparty/jpeg-compressor/jpgd.cpp
APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unknown-warning -Wno-implicit-fallthrough")
set_property(SOURCE serialise/utf8printf.cpp
APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-unknown-warning -Wno-format-truncation")
endif()
endif()