From 0008d1ef6da4557e435b44d1673bee57a8168355 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 11 Oct 2017 20:52:24 +0200 Subject: [PATCH] Disable spuriuos intel warning --- cmake/setup_compiler_flags_intel.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/setup_compiler_flags_intel.cmake b/cmake/setup_compiler_flags_intel.cmake index b22cc9de59..d6ca789a8d 100644 --- a/cmake/setup_compiler_flags_intel.cmake +++ b/cmake/setup_compiler_flags_intel.cmake @@ -55,6 +55,11 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-ansi") # ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-w2") +# +# Disable remarks: +# +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-diag-disable=remark") + # # Disable some warnings that lead to a lot of false positives: # @@ -133,12 +138,16 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd15531") # -w185 dynamic initialization in unreachable code # When initializing a local variable in code # that is executed only for one specific dimension +# -w186 pointless comparison of unsigned integer with zero +# The condition of for loops often depends on dim +# and happens to evaluate to zero sometimes # -w280 selector expression is constant # When writing 'switch(dim)' # ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd111") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd128") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd185") +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd186") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd280") -- 2.39.5