From 77dea7095c7ada239160db4eedc71dcfc6324f39 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 9764ded31..37e32ce1a 100644 --- a/renderdoc/CMakeLists.txt +++ b/renderdoc/CMakeLists.txt @@ -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()