File: 1030-warning-flags.patch

package info (click to toggle)
onetbb 2022.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,064 kB
  • sloc: cpp: 125,967; ansic: 9,646; python: 810; xml: 183; objc: 176; makefile: 66; sh: 64; javascript: 37
file content (18 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Suppress compiler warnings since GCC-12. (Closes: #1016283)
Author: Mo Zhou <lumin@debian.org>
Last-Update: 2022-08-18
Forwarded: https://github.com/oneapi-src/oneTBB/issues/823

Index: onetbb/cmake/compilers/GNU.cmake
===================================================================
--- onetbb.orig/cmake/compilers/GNU.cmake
+++ onetbb/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.