]> https://gitweb.dealii.org/ - dealii.git/commitdiff
bundled tbb warnings with gcc9 9692/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 20 Mar 2020 18:56:06 +0000 (14:56 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 20 Mar 2020 18:56:06 +0000 (14:56 -0400)
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

index f6c40a315d26fc074ef08f342a2991981e3f5e36..d87920a23460cbef8cbb590c2c9ee7876eb979a3 100644 (file)
@@ -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}

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.