From: Timo Heister Date: Tue, 24 Sep 2019 14:43:11 +0000 (-0400) Subject: intel: disable const initializer warning X-Git-Tag: v9.2.0-rc1~1035^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1b899e1614e611bcb437b7581bef5a78abd2d74;p=dealii.git intel: disable const initializer warning --- diff --git a/cmake/setup_compiler_flags_intel.cmake b/cmake/setup_compiler_flags_intel.cmake index fe47b5666e..6dc45c7939 100644 --- a/cmake/setup_compiler_flags_intel.cmake +++ b/cmake/setup_compiler_flags_intel.cmake @@ -96,6 +96,7 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-diag-disable=remark") # references; however, it's the only useful way to do # so if you need an invalid value for a reference) # -w383 value copied to temporary, reference to temporary used +# -w854 const variable requires an initializer (defect 253 in http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html) # -w981 operands are evaluated in unspecified order # -w1418 external function definition with no prior declaration # (happens in boost) @@ -121,6 +122,7 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd193") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd279") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd327") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd383") +ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd854") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd981") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd1418") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-wd1478")