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