From 4a88b9a6d6b7973c0a7f986efba2b95f6001d4be Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Tue, 21 May 2024 14:55:22 -0400 Subject: [PATCH] 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