From 862bbebfa75a19531d4ba1f9445d17efc278150a Mon Sep 17 00:00:00 2001 From: Pericles Telemachou Date: Tue, 28 Jan 2025 13:56:48 +1100 Subject: [PATCH] Move `forceError()` out of `#if` block --- godal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/godal.cpp b/godal.cpp index 40953e3..54bda16 100644 --- a/godal.cpp +++ b/godal.cpp @@ -1913,10 +1913,10 @@ GDALDatasetH godalViewshedGenerate(cctx *ctx, GDALRasterBandH bnd, const char *p #if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3, 1, 0) ret = GDALViewshedGenerate(bnd, pszDriverName, pszTargetRasterName, papszCreationOptions, dfObserverX, dfObserverY, dfObserverHeight, dfTargetHeight, dfVisibleVal, dfInvisibleVal, dfOutOfRangeVal, dfNoDataVal, dfCurvCoeff, GDALViewshedMode(eMode), dfMaxDistance, nullptr, nullptr, GDALViewshedOutputType(heightMode), nullptr); +#endif if(ret == nullptr) { forceError(ctx); } -#endif godalUnwrap(); return ret; }