From d887e25b8d7ec76dddca7d42fa8ed890f4042737 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 24 Oct 2017 23:01:36 +0100 Subject: [PATCH] Ignore format truncation warning on utf8printf.cpp * We deliberately truncate in some tests, to check our printf behaves correctly. --- renderdoc/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderdoc/CMakeLists.txt b/renderdoc/CMakeLists.txt index 6f997ab41..c3a90fd47 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -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()