File: warning-flags.patch

package info (click to toggle)
onetbb 2021.8.0-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 13,360 kB
  • sloc: cpp: 118,359; ansic: 8,761; python: 985; xml: 183; objc: 176; makefile: 54; sh: 43; javascript: 37
file content (14 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: https://github.com/oneapi-src/oneTBB/issues/823
Index: tbb/cmake/compilers/GNU.cmake
===================================================================
--- tbb.orig/cmake/compilers/GNU.cmake
+++ tbb/cmake/compilers/GNU.cmake
@@ -26,7 +26,7 @@ else()
     set(TBB_DEF_FILE_PREFIX lin${TBB_ARCH})
 endif()
 
-set(TBB_WARNING_LEVEL -Wall -Wextra $<$<BOOL:${TBB_STRICT}>:-Werror> -Wfatal-errors)
+set(TBB_WARNING_LEVEL -Wall -Wextra $<$<BOOL:${TBB_STRICT}>:-Werror> -Wfatal-errors -Wno-error=uninitialized -Wno-error=array-bounds -Wno-error=use-after-free -Wno-error=address)
 set(TBB_TEST_WARNING_FLAGS -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor)
 
 # Depfile options (e.g. -MD) are inserted automatically in some cases.