Commit 86a787b0 authored by Julien Michel's avatar Julien Michel

WRG: Filtering out warnings from OGR (GCC only)

parent 1cadb38b
......@@ -44,10 +44,10 @@ struct propagate_const<Tin const, Tout>
/** @} */
#define TRY_APPLY(TYPE, geometry, functor) \
if (typename propagate_const<TGeometry, TYPE>::type * dc \
if (typename propagate_const<TGeometry, TYPE>::type * dc_##TYPE \
= dynamic_cast<typename propagate_const<TGeometry, TYPE>::type*>(geometry))\
{\
return functor(dc); \
return functor(dc_##TYPE); \
}
......
......@@ -19,7 +19,11 @@
/*===========================================================================*/
/*===============================[ Includes ]================================*/
/*===========================================================================*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogr_feature.h"
#pragma GCC diagnostic pop
#include "otbOGRFeatureWrapper.h"
#include "otbJoinContainer.h"
#include <boost/array.hpp>
......
......@@ -23,7 +23,10 @@
#include <cassert>
#include <boost/bind.hpp>
#include <boost/foreach.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogrsf_frmts.h" // OGRDataSource & OGRLayer
#pragma GCC diagnostic pop
#include "otbOGRDataSourceWrapper.h"
......
......@@ -21,7 +21,10 @@
#include "itkLightObject.h"
#include "itkObjectFactory.h"
#include <vector>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wshadow"
#include "ogr_feature.h"
#pragma GCC diagnostic pop
namespace otb
{
......
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