From: Daniel Arndt Date: Wed, 11 Oct 2017 18:52:24 +0000 (+0200) Subject: Disable spuriuos intel warning X-Git-Tag: v9.0.0-rc1~963^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0008d1ef6da4557e435b44d1673bee57a8168355;p=dealii.git Disable spuriuos intel warning --- 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")