diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-03-12 22:42:38 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-03-14 20:25:12 +0100 |
| commit | cde489ce64556e0ad5fa5da64bcb8fd88aee4c39 (patch) | |
| tree | 5613678eec267e8076690bba041d90034a518faf /src | |
| parent | 98258282af54a8ec315aaa216d48f890dd09bbdf (diff) | |
| download | PROJ-cde489ce64556e0ad5fa5da64bcb8fd88aee4c39.tar.gz PROJ-cde489ce64556e0ad5fa5da64bcb8fd88aee4c39.zip | |
Fix various dead initialization warnings spotted by clang static analyzer
Diffstat (limited to 'src')
| -rw-r--r-- | src/PJ_chamb.c | 2 | ||||
| -rw-r--r-- | src/PJ_goode.c | 4 | ||||
| -rw-r--r-- | src/PJ_igh.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/PJ_chamb.c b/src/PJ_chamb.c index ca9c5edc..571bdf10 100644 --- a/src/PJ_chamb.c +++ b/src/PJ_chamb.c @@ -50,7 +50,7 @@ static double lc(projCtx ctx, double b,double c,double a) { static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */ - XY xy = {0.0,0.0}; + XY xy; struct pj_opaque *Q = P->opaque; double sinphi, cosphi, a; VECT v[3]; diff --git a/src/PJ_goode.c b/src/PJ_goode.c index 1554fd41..65761c4b 100644 --- a/src/PJ_goode.c +++ b/src/PJ_goode.c @@ -17,7 +17,7 @@ struct pj_opaque { static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */ - XY xy = {0.0,0.0}; + XY xy; struct pj_opaque *Q = P->opaque; if (fabs(lp.phi) <= PHI_LIM) @@ -31,7 +31,7 @@ static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */ static LP s_inverse (XY xy, PJ *P) { /* Spheroidal, inverse */ - LP lp = {0.0,0.0}; + LP lp; struct pj_opaque *Q = P->opaque; if (fabs(xy.y) <= PHI_LIM) diff --git a/src/PJ_igh.c b/src/PJ_igh.c index d1d684e7..bb97a8b5 100644 --- a/src/PJ_igh.c +++ b/src/PJ_igh.c @@ -36,7 +36,7 @@ struct pj_opaque { static XY s_forward (LP lp, PJ *P) { /* Spheroidal, forward */ - XY xy = {0.0,0.0}; + XY xy; struct pj_opaque *Q = P->opaque; int z; |
