Commit 5a4b46aa authored by Cédric Traizet's avatar Cédric Traizet
Browse files

WRG: -Wdeprecated-copy does not exist on gcc < 9 and clang < 10.0

parent 6ac9d862
Pipeline #8812 failed with stages
in 103 minutes and 55 seconds
......@@ -499,7 +499,7 @@ void SarSensorModel::ApplyCoordinateConversion(double in,
const GCP & SarSensorModel::findClosestGCP(const Point2DType& imPt, const Projection::GCPParam & gcpParam) const
{
assert(gcpParam.GCPs.size() > 0);
const GCP* closest;
const GCP* closest ;
// Squared distance between a Point and a gcp
auto squaredDistance = [](const Point2DType & imPt, const GCP & gcp)
......
......@@ -29,7 +29,11 @@
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#if (defined (__GNUC__) && (__GNUC__ >= 9)) || (defined (__clang__) && (__clang_major__ >= 10))
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
......
......@@ -27,7 +27,11 @@
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#if (defined (__GNUC__) && (__GNUC__ >= 9)) || (defined (__clang__) && (__clang_major__ >= 10))
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
......
......@@ -28,7 +28,11 @@
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#if (defined (__GNUC__) && (__GNUC__ >= 9)) || (defined (__clang__) && (__clang_major__ >= 10))
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
......
......@@ -26,7 +26,11 @@
#include "itkMacro.h"
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#if (defined (__GNUC__) && (__GNUC__ >= 9)) || (defined (__clang__) && (__clang_major__ >= 10))
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
......
......@@ -29,7 +29,10 @@
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#if (defined (__GNUC__) && (__GNUC__ >= 9)) || (defined (__clang__) && (__clang_major__ >= 10))
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
......
......@@ -30,7 +30,11 @@
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#if (defined (__GNUC__) && (__GNUC__ >= 9)) || (defined (__clang__) && (__clang_major__ >= 10))
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
......
......@@ -28,7 +28,11 @@
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#if (defined (__GNUC__) && (__GNUC__ >= 9)) || (defined (__clang__) && (__clang_major__ >= 10))
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Woverloaded-virtual"
......
......@@ -30,7 +30,11 @@
#if defined(__GNUC__) || defined(__clang__)
#pragma GCC diagnostic push
#if (defined (__GNUC__) && (__GNUC__ >= 9)) || (defined (__clang__) && (__clang_major__ >= 10))
#pragma GCC diagnostic ignored "-Wdeprecated-copy"
#endif
#pragma GCC diagnostic ignored "-Wshadow"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wsign-compare"
......
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