From: Timo Heister Date: Fri, 20 Mar 2020 18:56:06 +0000 (-0400) Subject: bundled tbb warnings with gcc9 X-Git-Tag: v9.2.0-rc1~395^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b66a32942675f3523932a4b0d2eedf36d8bc9585;p=dealii.git 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. --- 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}