]> https://gitweb.dealii.org/ - dealii.git/commitdiff
suppress MSVC warnings 4982/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 28 Aug 2017 22:24:25 +0000 (18:24 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 28 Aug 2017 22:24:25 +0000 (18:24 -0400)
Those are new warnings introduced with 19.11 (2017 final)

bundled/boost-1.62.0/include/boost/config/compiler/visualc.hpp
cmake/setup_compiler_flags_msvc.cmake

index dcf2759ef5a59728765e27f556d0d395d9c83b68..a0ab4810d4f25d66e5731325ad78b0cc543f72b2 100644 (file)
 #endif
 
 //
-// tjhei: taken from boost git repo
+// tjhei: upgrade supported MSVC version to 19.11
+// Boost repo has only 19.10:
 // last known and checked version is 19.10.24629 (VC++ 2017 RC):
-#if (_MSC_VER > 1910)
+#if (_MSC_VER > 1911)
 #  if defined(BOOST_ASSERT_CONFIG)
 #     error "Unknown compiler version - please run the configure tests and report the results"
 #  else
index a533697a83e63595c69973a8eedf0d2a68af64f3..f4cfcabc2d64a7c3ccebd2cb3fe040619204c9c2 100644 (file)
@@ -73,6 +73,10 @@ ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "/wd4789")
 ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "/wd4808")
 
 
+# Bug in MSVC 2017: bogus warning C5037: an out-of-line definition of a member of a class template cannot have default arguments
+# see https://developercommunity.visualstudio.com/content/problem/81223/incorrect-error-c5037-with-permissive.html
+ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "/wd5037")
+
 #############################
 #                           #
 #    For Release target:    #

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.