From b184c21ce0bc72d0c559cd93525628e8fefa62be Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 3 Aug 2016 14:59:54 +0200 Subject: Fold odb/compiler/*/{pre post}.hxx into odb/{pre post}.hxx We only needed it for one compiler (VC) ever. --- odb/pre.hxx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'odb/pre.hxx') diff --git a/odb/pre.hxx b/odb/pre.hxx index 2245c78..3206c7d 100644 --- a/odb/pre.hxx +++ b/odb/pre.hxx @@ -3,5 +3,22 @@ // license : GNU GPL v2; see accompanying LICENSE file #ifdef _MSC_VER -# include + // Push warning state. + // +# pragma warning (push, 3) + + // Disabled warnings. + // +# pragma warning (disable:4068) // unknown pragma +# pragma warning (disable:4251) // needs to have DLL-interface +# pragma warning (disable:4290) // exception specification ignored +# pragma warning (disable:4355) // passing 'this' to a member +# pragma warning (disable:4800) // forcing value to bool +# pragma warning (disable:4231) // non-standard extension (extern template) +# pragma warning (disable:4275) // "C4251 is essentially noise and can be + // silenced" - Stephan T. Lavavej [And C4275 + // is essentially the same thing.] + // Elevated warnings. + // +# pragma warning (2:4239) // standard doesn't allow this conversion #endif -- cgit v1.1