Disabled warnings from compilation of ODB API

Disabled a couple of more warnings from compilation of ODB API.
Pushing/popping pragmas before and after inclusion of ODB API headers.
This commit is contained in:
Stein Dale 2015-06-04 13:02:49 +02:00
parent be1759835e
commit fcfd2603e0

View File

@ -17,10 +17,18 @@
//
/////////////////////////////////////////////////////////////////////////////////
// Get rid of warnings from compilation of ODB API
#ifdef _MSC_VER
// Get rid of warnings from compilation of ODB API
#pragma warning(push)
#pragma warning(disable: 4018)
#pragma warning(disable: 4482)
#pragma warning(disable: 4584)
#pragma warning(disable: 4800)
#endif
#include <odb_API.h>
#include <odb_Enum.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#include "RifOdbReader.h"
@ -28,9 +36,6 @@
#include "RigFemPartCollection.h"
#include "RigFemPart.h"
#include <odb_API.h>
#include <odb_Enum.h>
#include <map>
#include <iostream>
#include <limits>