From c5505f031613e0cdd6c99d24379f5316e536acaa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 3 Aug 2010 14:06:02 +0200 Subject: Add pre/post header for compiler-specific actions --- odb/compilers/vc/post.hxx | 6 ++++++ odb/compilers/vc/pre.hxx | 28 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 odb/compilers/vc/post.hxx create mode 100644 odb/compilers/vc/pre.hxx (limited to 'odb/compilers') 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 +// 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 +// 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 -- cgit v1.1