]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable a bunch of warnings for MS Visual C++.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 28 Jun 2012 22:34:08 +0000 (22:34 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 28 Jun 2012 22:34:08 +0000 (22:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@25657 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure
deal.II/configure.in
deal.II/include/deal.II/base/config.h.in

index c91741126434faf4026d0895a1fb17f74cf9b9ce..1bfe85c80a3c1c175a207dd8b4e119e6ef73e424 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 25614 .
+# From configure.in Revision: 25636 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.68 for deal.II 7.2.pre.
 #
index e80fe5e008cc1cf4a620b7a73127f495f04fc6f9..747709fe0e953b1f1fc4a492f7721b0de7090731 100644 (file)
@@ -907,6 +907,24 @@ AH_BOTTOM(
 #include <deal.II/base/numbers.h>
 #include <deal.II/base/types.h>
 
+// Disable a bunch of warnings for Microsoft Visual C++. We should
+// work on reducing this list over time to those that are truly
+// harmless and not indicative of actual problems
+#ifdef DEAL_II_MSVC
+#  pragma warning( disable : 4244 ) // implied downcasting from double to float
+#  pragma warning( disable : 4267 ) // implied downcasting from size_t to unsigned int
+#  pragma warning( disable : 4996 ) // unsafe functions, such as strcat and sprintf
+#  pragma warning( disable : 4355 ) // 'this' : used in base member initializer list
+#  pragma warning( disable : 4661 ) // no suitable definition provided for explicit template instantiation request
+#  pragma warning( disable : 4800 ) // forcing value to bool 'true' or 'false' (performance warning)
+#  pragma warning( disable : 4146 ) // unary minus operator applied to unsigned type, result still unsigned
+#  pragma warning( disable : 4667 ) // no function template defined that matches forced instantiation
+#  pragma warning( disable : 4520 ) // multiple default constructors specified
+#  pragma warning( disable : 4700 ) // uninitialized local variable
+#  pragma warning( disable : 4789 ) // destination of memory copy is too small
+#  pragma warning( disable : 4808 ) // case 'value' is not a valid value for switch condition of type 'bool
+#endif // DEAL_II_MSVC
+
 #endif
 ])
 
index 68f063e9938d7291db8cb74474a98d03096dbe3f..4e3186b63522859e521f41729279067689f02475 100644 (file)
 #include <deal.II/base/numbers.h>
 #include <deal.II/base/types.h>
 
+// Disable a bunch of warnings for Microsoft Visual C++. We should
+// work on reducing this list over time to those that are truly
+// harmless and not indicative of actual problems
+#ifdef DEAL_II_MSVC
+#  pragma warning( disable : 4244 ) // implied downcasting from double to float
+#  pragma warning( disable : 4267 ) // implied downcasting from size_t to unsigned int
+#  pragma warning( disable : 4996 ) // unsafe functions, such as strcat and sprintf
+#  pragma warning( disable : 4355 ) // 'this' : used in base member initializer list
+#  pragma warning( disable : 4661 ) // no suitable definition provided for explicit template instantiation request
+#  pragma warning( disable : 4800 ) // forcing value to bool 'true' or 'false' (performance warning)
+#  pragma warning( disable : 4146 ) // unary minus operator applied to unsigned type, result still unsigned
+#  pragma warning( disable : 4667 ) // no function template defined that matches forced instantiation
+#  pragma warning( disable : 4520 ) // multiple default constructors specified
+#  pragma warning( disable : 4700 ) // uninitialized local variable
+#  pragma warning( disable : 4789 ) // destination of memory copy is too small
+#  pragma warning( disable : 4808 ) // case 'value' is not a valid value for switch condition of type 'bool
+#endif // DEAL_II_MSVC
+
 #endif
 

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.