aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_aeqd.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_aeqd.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_aeqd.c')
-rw-r--r--src/PJ_aeqd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PJ_aeqd.c b/src/PJ_aeqd.c
index 907e7d44..92b81748 100644
--- a/src/PJ_aeqd.c
+++ b/src/PJ_aeqd.c
@@ -82,6 +82,7 @@ static XY e_forward (LP lp, PJ *P) { /* Ellipsoidal, forward */
switch (Q->mode) {
case N_POLE:
coslam = - coslam;
+ /*-fallthrough*/
case S_POLE:
xy.x = (rho = fabs(Q->Mp - pj_mlfn(lp.phi, sinphi, cosphi, Q->en))) *
sin(lp.lam);
@@ -138,6 +139,7 @@ oblcon:
case N_POLE:
lp.phi = -lp.phi;
coslam = -coslam;
+ /*-fallthrough*/
case S_POLE:
if (fabs(lp.phi - M_HALFPI) < EPS10) F_ERROR;
xy.x = (xy.y = (M_HALFPI + lp.phi)) * sin(lp.lam);