aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_laea.c
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2001-02-07 17:55:05 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2001-02-07 17:55:05 +0000
commit6ab5e6cfa7775b8fe77a93432d331b8654a33b3f (patch)
tree9af88663973b8f6c23f345c4783a16ca1de223ce /src/PJ_laea.c
parent6c008cb7ae007b6f0cb813febcefa60c718c05c7 (diff)
downloadPROJ-6ab5e6cfa7775b8fe77a93432d331b8654a33b3f.tar.gz
PROJ-6ab5e6cfa7775b8fe77a93432d331b8654a33b3f.zip
Cleaned up various warnings when compiled with -Wall.
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@906 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src/PJ_laea.c')
-rw-r--r--src/PJ_laea.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PJ_laea.c b/src/PJ_laea.c
index dab96700..9ba60c26 100644
--- a/src/PJ_laea.c
+++ b/src/PJ_laea.c
@@ -25,7 +25,7 @@ PROJ_HEAD(laea, "Lambert Azimuthal Equal Area") "\n\tAzi, Sph&Ell";
#define EQUIT 2
#define OBLIQ 3
FORWARD(e_forward); /* ellipsoid */
- double coslam, sinlam, sinphi, q, sinb, cosb, b;
+ double coslam, sinlam, sinphi, q, sinb=0.0, cosb=0.0, b=0.0;
coslam = cos(lp.lam);
sinlam = sin(lp.lam);
@@ -105,7 +105,7 @@ oblcon:
return (xy);
}
INVERSE(e_inverse); /* ellipsoid */
- double cCe, sCe, q, rho, ab;
+ double cCe, sCe, q, rho, ab=0.0;
switch (P->mode) {
case EQUIT:
@@ -146,7 +146,7 @@ INVERSE(e_inverse); /* ellipsoid */
return (lp);
}
INVERSE(s_inverse); /* spheroid */
- double cosz, rh, sinz;
+ double cosz=0.0, rh, sinz=0.0;
rh = hypot(xy.x, xy.y);
if ((lp.phi = rh * .5 ) > 1.) I_ERROR;