From ad8053c0d72e7972eb8c36a9e64a57d50564cd78 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 6 Feb 2017 09:10:25 -0500 Subject: [PATCH] remove intel warning about always_inline disable the following incorrect warning: ``` include/deal.II/base/tensor.h(824): warning #3415: the "always_inline" attribute is ignored on non-inline functions inline DEAL_II_ALWAYS_INLINE ``` --- cmake/setup_compiler_flags_intel.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/setup_compiler_flags_intel.cmake b/cmake/setup_compiler_flags_intel.cmake index 2232a64d03..d751e81cd8 100644 --- a/cmake/setup_compiler_flags_intel.cmake +++ b/cmake/setup_compiler_flags_intel.cmake @@ -58,6 +58,7 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-w2") # # Disable some warnings that lead to a lot of false positives: # +# -w21 type qualifiers are meaningless in this declaration # -w68 integer conversion resulted in a change of sign # (triggers a lot in functionparser) # -w175 subscript out of range @@ -97,10 +98,12 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-w2") # -w1572 floating-point equality and inequality comparisons are unreliable # -w2259 non-pointer conversion from "double" to "float" may # lose significant bits -# -w21 type qualifiers are meaningless in this declaration # -w2536 type qualifiers are meaningless here +# -w3415 the "always_inline" attribute is ignored on non-inline functions +# incorrectly triggered by inline functions in tensor.h # -w15531 A portion of SIMD loop is serialized # +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd21") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd68") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd135") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd175") @@ -115,8 +118,8 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd1418") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd1478") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd1572") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd2259") -ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd21") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd2536") +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd3415") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd15531") -- 2.39.5