]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Suppress warnings of the following kind:
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 1 Oct 2013 20:36:19 +0000 (20:36 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 1 Oct 2013 20:36:19 +0000 (20:36 +0000)
..................
/.../deal.II/source/numerics/matrix_tools.cc(2088): warning #2536: type qualifiers are meaningless here

                  bool (*comp)(const typename SparseMatrix<number>::iterator::value_type p,
                               ^
..................
Avoiding the 'const' here is not always completely possible in
template contexts, depending on whether 'value_type' already
has the 'const' in it or not.

git-svn-id: https://svn.dealii.org/trunk@31060 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/setup_compiler_flags_intel.cmake

index 4ebd1e69393d86832934305e67fb1dfc746129f4..912798af4768f68a4c49ce1faeb4a7138cac68af 100644 (file)
@@ -75,6 +75,7 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-w2")
 #          (happens in boost)
 #   -w1478 deprecation warning
 #   -w1572 floating-point equality and inequality comparisons are unreliable
+#   -w2536 type qualifiers are meaningless here
 #
 ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd68")
 ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd175")
@@ -86,6 +87,7 @@ ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd981")
 ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd1418")
 ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd1478")
 ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd1572")
+ENABLE_IF_SUPPORTED(CMAKE_CXX_FLAGS "-wd2536")
 
 
 IF(DEAL_II_STATIC_EXECUTABLE)

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.