From b66a32942675f3523932a4b0d2eedf36d8bc9585 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 20 Mar 2020 14:56:06 -0400 Subject: [PATCH] bundled tbb warnings with gcc9 I see a couple of strncpy warnings with gcc 9 in our bundled tbb. Instead of trying to fix the code (it looks correct as it is wrapped in an if to check the length), just disable the warning. --- bundled/tbb-2018_U2/src/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bundled/tbb-2018_U2/src/CMakeLists.txt b/bundled/tbb-2018_U2/src/CMakeLists.txt index f6c40a315d..d87920a234 100644 --- a/bundled/tbb-2018_U2/src/CMakeLists.txt +++ b/bundled/tbb-2018_U2/src/CMakeLists.txt @@ -38,6 +38,13 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-flifetime-dse=1") # ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wimplicit-fallthrough=0") +# +# Disable string overflow warnings (strncpy, ...): +# +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wstringop-overflow=0") + + + SET(CMAKE_INCLUDE_CURRENT_DIR TRUE) INCLUDE_DIRECTORIES( ${THREADS_BUNDLED_INCLUDE_DIRS} -- 2.39.5