Commit af5fc06d authored by Rashad Kanavath's avatar Rashad Kanavath

WRG: hide warnings from gdal headers

parent b94f4eef
......@@ -22,7 +22,11 @@
#include <boost/shared_ptr.hpp>
class OGRFieldDefn;
class OGRFeature;
#pragma warning ( push )
#pragma warning ( disable: 4251 )
#include "ogr_core.h" // OGR enums
#pragma warning ( pop )
#include "itkIndent.h"
#include "OTBGdalAdaptersExport.h"
......
......@@ -52,6 +52,7 @@
#include "otbOGRHelpers.h"
/*===========================================================================*/
/*================[ Associations C++ types -> OGR functions ]================*/
/*===========================================================================*/
......
......@@ -24,6 +24,11 @@
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogr_feature.h"
#pragma GCC diagnostic pop
#elif defined(_MSC_VER)
#pragma warning ( push )
#pragma warning ( disable: 4251 )
#include "ogr_feature.h"
#pragma warning ( pop )
#else
#include "ogr_feature.h"
#endif
......
......@@ -29,10 +29,16 @@
#pragma GCC diagnostic ignored "-Wshadow"
#include "gdal_priv.h"// GDALDataset
#pragma GCC diagnostic pop
#elif defined(_MSC_VER)
#pragma warning ( push )
#pragma warning ( disable: 4251 )
#include "gdal_priv.h" // GDALDataset
#pragma warning ( pop )
#else
#include "gdal_priv.h" // GDALDataset
#endif
#include "otbOGRDataSourceWrapper.h"
/*===========================================================================*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment