Skip to content

Commit 843db4e

Browse files
committed
Guard pragma.
1 parent e8ed2b9 commit 843db4e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

alg/viewshed/viewshed.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ double adjustCurveCoeff(double curveCoeff, GDALDatasetH hSrcDS)
472472
return curveCoeff;
473473
}
474474

475+
#if defined(__clang__) || defined(__GNUC__)
475476
#pragma GCC diagnostic ignored "-Wmissing-declarations"
477+
#endif
476478

477479
void testShrinkWindowForAngles(Window &oOutExtent, int nX, int nY,
478480
double startAngle, double endAngle)

apps/gdalalg_raster_viewshed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/************************************************************************/
3535

3636
GDALRasterViewshedAlgorithm::GDALRasterViewshedAlgorithm()
37-
: GDALAlgorithm(NAME, DESCRIPTION, HELP_URL)
37+
: GDALAlgorithm(NAME, DESCRIPTION, HELP_URL), m_opts{}
3838
{
3939
AddProgressArg();
4040

0 commit comments

Comments
 (0)