From: bangerth Date: Thu, 27 Feb 2014 21:24:20 +0000 (+0000) Subject: Suppress a number of warnings that ICC generates. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1a15b0be52d7b56745b10f3acda855c2e8d487b;p=dealii-svn.git Suppress a number of warnings that ICC generates. git-svn-id: https://svn.dealii.org/trunk@32580 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/setup_compiler_flags_intel.cmake b/deal.II/cmake/setup_compiler_flags_intel.cmake index 19dc9ad539..fb2063af66 100644 --- a/deal.II/cmake/setup_compiler_flags_intel.cmake +++ b/deal.II/cmake/setup_compiler_flags_intel.cmake @@ -94,6 +94,7 @@ 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 # ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd68") @@ -109,9 +110,28 @@ 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") +# Also disable the following warnings that we frequently +# trigger writing dimension independent code: +# -w111 statement is unreachable +# Happens in code that is guarded by a check on 'dim' +# -w128 loop is not reachable from preceding +# Same as above +# -w185 dynamic initialization in unreachable code +# When initializing a local variable in code +# that is executed only for one specific dimension +# -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 "-wd280") + + + IF(DEAL_II_STATIC_EXECUTABLE) # # To produce a static executable, we have to statically link intel's