diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-03 14:06:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-03 14:06:02 +0200 |
commit | c5505f031613e0cdd6c99d24379f5316e536acaa (patch) | |
tree | 7a60a67d78cbac6a37465807943d2627e4856561 | |
parent | c262edb34d66a0bb6cb285f1f3014684040691ad (diff) |
Add pre/post header for compiler-specific actions
-rw-r--r-- | odb/compilers/vc/post.hxx | 6 | ||||
-rw-r--r-- | odb/compilers/vc/pre.hxx | 28 | ||||
-rw-r--r-- | odb/post.hxx | 8 | ||||
-rw-r--r-- | odb/pre.hxx | 8 |
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 |