aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_laea.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-02-25 21:34:55 +0100
committerEven Rouault <even.rouault@spatialys.com>2017-02-25 21:34:55 +0100
commitb288ee6bbc345baf2ef56aaec49184c34a6cd0dd (patch)
tree194aee1069116f83bd4cf4f0d128737b08870b04 /src/PJ_laea.c
parent65b0e18c16ec982a73cff7c03c9b9b48337b57d0 (diff)
downloadPROJ-b288ee6bbc345baf2ef56aaec49184c34a6cd0dd.tar.gz
PROJ-b288ee6bbc345baf2ef56aaec49184c34a6cd0dd.zip
Fix GCC 7 warnings related to misleading indentations, fallthrough cases and unused variable
Diffstat (limited to 'src/PJ_laea.c')
-rw-r--r--src/PJ_laea.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PJ_laea.c b/src/PJ_laea.c
index a92c2a4a..d4535dd0 100644
--- a/src/PJ_laea.c
+++ b/src/PJ_laea.c
@@ -106,6 +106,7 @@ oblcon:
break;
case N_POLE:
coslam = -coslam;
+ /*-fallthrough*/
case S_POLE:
if (fabs(lp.phi + P->phi0) < EPS10) F_ERROR;
xy.y = M_FORTPI - lp.phi * .5;
@@ -148,6 +149,7 @@ static LP e_inverse (XY xy, PJ *P) { /* Ellipsoidal, inverse */
break;
case N_POLE:
xy.y = -xy.y;
+ /*-fallthrough*/
case S_POLE:
q = (xy.x * xy.x + xy.y * xy.y);
if (!q) {