aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_aea.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_aea.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_aea.c')
-rw-r--r--src/PJ_aea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PJ_aea.c b/src/PJ_aea.c
index 6ad5e9f0..447d9755 100644
--- a/src/PJ_aea.c
+++ b/src/PJ_aea.c
@@ -55,7 +55,7 @@ FORWARD(e_forward); /* ellipsoid & spheroid */
return (xy);
}
INVERSE(e_inverse) /* ellipsoid & spheroid */;
- if (P->rho = hypot(xy.x, xy.y = P->rho0 - xy.y)) {
+ if( (P->rho = hypot(xy.x, xy.y = P->rho0 - xy.y)) != 0.0 ) {
if (P->n < 0.) {
P->rho = -P->rho;
xy.x = -xy.x;
@@ -90,7 +90,7 @@ setup(PJ *P) {
P->n = sinphi = sin(P->phi1);
cosphi = cos(P->phi1);
secant = fabs(P->phi1 - P->phi2) >= EPS10;
- if (P->ellips = P->es > 0.) {
+ if( (P->ellips = (P->es > 0.))) {
double ml1, m1;
if (!(P->en = pj_enfn(P->es))) E_ERROR_0;