From 155850ff0f0ec8dda310c55eda57ee4cc4e44ba0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 1 Oct 2013 20:36:19 +0000 Subject: [PATCH] Suppress warnings of the following kind: .................. /.../deal.II/source/numerics/matrix_tools.cc(2088): warning #2536: type qualifiers are meaningless here bool (*comp)(const typename SparseMatrix::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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deal.II/cmake/setup_compiler_flags_intel.cmake b/deal.II/cmake/setup_compiler_flags_intel.cmake index 4ebd1e6939..912798af47 100644 --- a/deal.II/cmake/setup_compiler_flags_intel.cmake +++ b/deal.II/cmake/setup_compiler_flags_intel.cmake @@ -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) -- 2.39.5