From 22c9472b108cc920ea320b98a510bc540935e1d3 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Tue, 21 May 2024 11:09:59 -0400 Subject: [PATCH 1/2] Silence -Wclass-memaccess from TBB --- make/compiler_flags | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make/compiler_flags b/make/compiler_flags index a083dd1d45a..8099da98733 100644 --- a/make/compiler_flags +++ b/make/compiler_flags @@ -246,6 +246,8 @@ endif ## silence warnings occuring due to the TBB and Eigen libraries CXXFLAGS_WARNINGS += -Wno-ignored-attributes +## https://github.com/oneapi-src/oneTBB/issues/307 +CXXFLAGS_WARNINGS += -Wno-class-memaccess ################################################################################ # Setup OpenCL From 4a88b9a6d6b7973c0a7f986efba2b95f6001d4be Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Tue, 21 May 2024 14:55:22 -0400 Subject: [PATCH 2/2] Warning is gcc only --- make/compiler_flags | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make/compiler_flags b/make/compiler_flags index 8099da98733..2228dd37938 100644 --- a/make/compiler_flags +++ b/make/compiler_flags @@ -247,7 +247,9 @@ endif ## silence warnings occuring due to the TBB and Eigen libraries CXXFLAGS_WARNINGS += -Wno-ignored-attributes ## https://github.com/oneapi-src/oneTBB/issues/307 -CXXFLAGS_WARNINGS += -Wno-class-memaccess +ifeq ($(CXX_TYPE), gcc) + CXXFLAGS_WARNINGS += -Wno-class-memaccess +endif ################################################################################ # Setup OpenCL