Commit a7fa78a6 authored by Antoine Regimbeau's avatar Antoine Regimbeau

WRG: disable warning for MSVC

parent 22b1098f
......@@ -28,6 +28,16 @@
#include <stdexcept>
#include <tuple>
#if defined(_MSC_VER)
#pragma warning ( disable: 4251 )
// Disable following warning :
// warning C4251: 'otb::CoordinateTransformation::m_Transform':
// class 'std::unique_ptr<OGRCoordinateTransformation,std::default_delete<_Ty>>'
// needs to have dll-interface to be used by clients of class
// 'otb::CoordinateTransformation'
// As long as otb::CoordinateTransformation::m_Transform is private no need to
// export this type.
#endif
class OGRCoordinateTransformation;
......
......@@ -25,13 +25,21 @@
#include <memory>
#include <stdexcept>
#if defined(_MSC_VER)
#pragma warning ( disable: 4251 )
// Disable following warning :
// warning C4251: 'otb::SpatialReference::m_SR':
// class 'std::unique_ptr<OGRSpatialReference,OGRSpatialReferenceDeleter>' needs
// to have dll-interface to be used by clients of class 'otb::SpatialReference'
// As long as otb::SpatialReference::m_SR is private no need to export this type.
#endif
class OGRSpatialReference;
namespace otb
{
// Destructor of OGRSpatialReference
namespace internal
{
{
struct OTBGdalAdapters_EXPORT OGRSpatialReferenceDeleter
{
public:
......
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