aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/compilers/vc/post.hxx6
-rw-r--r--odb/compilers/vc/pre.hxx28
-rw-r--r--odb/post.hxx8
-rw-r--r--odb/pre.hxx8
4 files changed, 50 insertions, 0 deletions
diff --git a/odb/compilers/vc/post.hxx b/odb/compilers/vc/post.hxx
new file mode 100644
index 0000000..4b87797
--- /dev/null
+++ b/odb/compilers/vc/post.hxx
@@ -0,0 +1,6 @@
+// file : odb/compilers/vc/post.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#pragma warning (pop)
diff --git a/odb/compilers/vc/pre.hxx b/odb/compilers/vc/pre.hxx
new file mode 100644
index 0000000..7f664fd
--- /dev/null
+++ b/odb/compilers/vc/pre.hxx
@@ -0,0 +1,28 @@
+// file : odb/compilers/vc/pre.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+// These warnings had to be disabled "for good".
+//
+//#pragma warning (disable:4250) // inherits via dominance
+//#pragma warning (disable:4661) // no definition for explicit instantiation
+
+
+// Push warning state.
+//
+#pragma warning (push, 3)
+
+
+// Disabled warnings.
+//
+#pragma warning (disable:4355) // passing 'this' to a member
+#pragma warning (disable:4800) // forcing value to bool
+//#pragma warning (disable:4275) // non dll-interface base
+//#pragma warning (disable:4251) // base needs to have dll-interface
+//#pragma warning (disable:4224) // nonstandard extension (/Za option)
+
+
+// Elevated warnings.
+//
+#pragma warning (2:4239) // standard doesn't allow this conversion
diff --git a/odb/post.hxx b/odb/post.hxx
new file mode 100644
index 0000000..89ab2eb
--- /dev/null
+++ b/odb/post.hxx
@@ -0,0 +1,8 @@
+// file : odb/post.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifdef _MSC_VER
+# include <odb/compilers/vc/post.hxx>
+#endif
diff --git a/odb/pre.hxx b/odb/pre.hxx
new file mode 100644
index 0000000..63acb3e
--- /dev/null
+++ b/odb/pre.hxx
@@ -0,0 +1,8 @@
+// file : odb/pre.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifdef _MSC_VER
+# include <odb/compilers/vc/pre.hxx>
+#endif