diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-02-25 21:34:55 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-02-25 21:34:55 +0100 |
| commit | b288ee6bbc345baf2ef56aaec49184c34a6cd0dd (patch) | |
| tree | 194aee1069116f83bd4cf4f0d128737b08870b04 /src/PJ_stere.c | |
| parent | 65b0e18c16ec982a73cff7c03c9b9b48337b57d0 (diff) | |
| download | PROJ-b288ee6bbc345baf2ef56aaec49184c34a6cd0dd.tar.gz PROJ-b288ee6bbc345baf2ef56aaec49184c34a6cd0dd.zip | |
Fix GCC 7 warnings related to misleading indentations, fallthrough cases and unused variable
Diffstat (limited to 'src/PJ_stere.c')
| -rw-r--r-- | src/PJ_stere.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/PJ_stere.c b/src/PJ_stere.c index c08b1093..5ca1b9d9 100644 --- a/src/PJ_stere.c +++ b/src/PJ_stere.c @@ -62,6 +62,7 @@ xmul: lp.phi = -lp.phi; coslam = - coslam; sinphi = -sinphi; + /*-fallthrough*/ case N_POLE: xy.x = Q->akm1 * pj_tsfn (lp.phi, sinphi, P->e); xy.y = - xy.x * coslam; @@ -98,6 +99,7 @@ oblcon: case N_POLE: coslam = - coslam; lp.phi = - lp.phi; + /*-fallthrough*/ case S_POLE: if (fabs (lp.phi - M_HALFPI) < TOL) F_ERROR; xy.x = sinlam * ( xy.y = Q->akm1 * tan (M_FORTPI + .5 * lp.phi) ); @@ -134,6 +136,7 @@ static LP e_inverse (XY xy, PJ *P) { /* Ellipsoidal, inverse */ break; case N_POLE: xy.y = -xy.y; + /*-fallthrough*/ case S_POLE: phi_l = M_HALFPI - 2. * atan (tp = - rho / Q->akm1); halfpi = -M_HALFPI; @@ -183,6 +186,7 @@ static LP s_inverse (XY xy, PJ *P) { /* Spheroidal, inverse */ break; case N_POLE: xy.y = -xy.y; + /*-fallthrough*/ case S_POLE: if (fabs (rh) <= EPS10) lp.phi = P->phi0; @@ -251,6 +255,7 @@ static PJ *setup(PJ *P) { /* general initialization */ case OBLIQ: sinph0 = sin (P->phi0); cosph0 = cos (P->phi0); + /*-fallthrough*/ case EQUIT: Q->akm1 = 2. * P->k0; break; |
