aboutsummaryrefslogtreecommitdiff
path: root/odb/compilers
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-03 14:06:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-03 14:06:02 +0200
commitc5505f031613e0cdd6c99d24379f5316e536acaa (patch)
tree7a60a67d78cbac6a37465807943d2627e4856561 /odb/compilers
parentc262edb34d66a0bb6cb285f1f3014684040691ad (diff)
Add pre/post header for compiler-specific actions
Diffstat (limited to 'odb/compilers')
-rw-r--r--odb/compilers/vc/post.hxx6
-rw-r--r--odb/compilers/vc/pre.hxx28
2 files changed, 34 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