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 400b9487e1
commit d887e25b8d
+3
View File
@@ -205,6 +205,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()