Commit 731dbfdd authored by Rashad Kanavath's avatar Rashad Kanavath

COMP: MSVC: ifdef gaurd for pragma GCC

parent d1e1aad0
......@@ -39,10 +39,14 @@
// #include "boost/type_traits/is_array.hpp"
#include "boost/type_traits/is_contiguous.h" // from OTB actually
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogr_feature.h" // OGRFeature::*field_getters
#include "ogr_feature.h" // OGRFeature::*field_getters
#pragma GCC diagnostic pop
#else
#include "ogr_feature.h" // OGRFeature::*field_getters
#endif
#include "cpl_string.h" // CSLCount
#include "otbOGRHelpers.h"
......
......@@ -22,12 +22,14 @@
#include "otbOGRFeatureWrapper.h"
#include <boost/bind.hpp>
#include <boost/make_shared.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogr_feature.h"
#pragma GCC diagnostic pop
#else
#include "ogr_feature.h"
#endif
#include "cpl_error.h"
#include "itkMacro.h"
......
......@@ -23,10 +23,15 @@
#include <cassert>
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogrsf_frmts.h" // OGRDataSource & OGRLayer
#pragma GCC diagnostic pop
#else
#include "ogrsf_frmts.h" // OGRDataSource & OGRLayer
#endif
#include "otbOGRDataSourceWrapper.h"
......
......@@ -21,10 +21,14 @@
#include "itkLightObject.h"
#include "itkObjectFactory.h"
#include <vector>
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogr_feature.h"
#pragma GCC diagnostic pop
#else
#include "ogr_feature.h"
#endif
namespace otb
{
......
......@@ -31,10 +31,15 @@
// include SharedForward to avoid duplicating the code which find the library path variable
// name and the path separator
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#include "itksys/SharedForward.h"
#pragma GCC diagnostic pop
#else
#include "itksys/SharedForward.h"
#endif
#include "itksys/Process.h"
// Temporary definition of otbTestMain
......
......@@ -45,10 +45,15 @@
#include "cpl_string.h"
#include "cpl_multiproc.h"
#include "ogr_api.h"
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogrsf_frmts.h"
#pragma GCC diagnostic pop
#else
#include "ogrsf_frmts.h"
#endif
#define otbPrintDiff(comment, refStr, testStr) \
std::cout << " ---- '" << comment << "' checking ---------------------------" << std::endl; \
......
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