From b91af0075a7e8a189e2cd443a823a0798e0b9ed9 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 4 Sep 2021 18:06:07 +0200 Subject: healpix.cpp: make it more obvious to cppcheck that capmap.cn is always initialized --- src/projections/healpix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3