From: Wolfgang Bangerth Date: Thu, 27 Feb 2014 21:24:20 +0000 (+0000) Subject: Suppress a number of warnings that ICC generates. X-Git-Tag: v8.2.0-rc1~751 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3019483c033d728c5663c1c14f822603a9bed7bb;p=dealii.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