]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable spuriuos intel warning
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 11 Oct 2017 18:52:24 +0000 (20:52 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 11 Oct 2017 19:35:28 +0000 (21:35 +0200)
cmake/setup_compiler_flags_intel.cmake

index b22cc9de59000d70bc94733b73acdb4c681bae2a..d6ca789a8d72945fe0e037d827c63ffb8954ee73 100644 (file)
@@ -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")
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.