aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-09-04 18:06:07 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-09-04 18:06:07 +0200
commitb91af0075a7e8a189e2cd443a823a0798e0b9ed9 (patch)
treeeaae225629ae6101db6094b046f319df4f6aba7a
parenta767ae5d14063f3df1a3af994f26915f973de408 (diff)
downloadPROJ-b91af0075a7e8a189e2cd443a823a0798e0b9ed9.tar.gz
PROJ-b91af0075a7e8a189e2cd443a823a0798e0b9ed9.zip
healpix.cpp: make it more obvious to cppcheck that capmap.cn is always initialized
-rw-r--r--src/projections/healpix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/projections/healpix.cpp b/src/projections/healpix.cpp
index 6f34f9f0..3aa22807 100644
--- a/src/projections/healpix.cpp
+++ b/src/projections/healpix.cpp
@@ -416,7 +416,7 @@ static CapMap get_cap(double x, double y, int north_square, int south_square,
} else {
capmap.cn = north_square;
}
- } else if (capmap.region == CapMap::south) {
+ } else /* if (capmap.region == CapMap::south) */ {
if (y <= x + M_FORTPI + EPS && y > -x - 5*M_FORTPI + EPS) {
capmap.cn = (south_square + 1) % 4;
} else if (y < x + M_FORTPI - EPS && y <= -x - 5*M_FORTPI + EPS) {