diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2015-10-27 10:47:28 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2015-10-27 10:47:28 +0100 |
| commit | d227fcf36d550f244eccc5fedc2e08908451c27b (patch) | |
| tree | 303b2743989d0653bff13a45bd91ec713c22ccae /src/gen_cheb.c | |
| parent | caf4c9b1f2fd5be5b8924e4335f77c47f976348f (diff) | |
| download | PROJ-d227fcf36d550f244eccc5fedc2e08908451c27b.tar.gz PROJ-d227fcf36d550f244eccc5fedc2e08908451c27b.zip | |
Fix compiler warnings with gcc 4.4
Diffstat (limited to 'src/gen_cheb.c')
| -rw-r--r-- | src/gen_cheb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gen_cheb.c b/src/gen_cheb.c index f06a7449..f1736872 100644 --- a/src/gen_cheb.c +++ b/src/gen_cheb.c @@ -18,10 +18,10 @@ gen_cheb(int inverse, projUV (*proj)(projUV), char *s, PJ *P, int iargc, char ** double (*input)(const char *, char **); input = inverse ? strtod : dmstor; - if (*s) low.u = input(s, &s); else ++errin; - if (*s == ',') upp.u = input(s+1, &s); else ++errin; - if (*s == ',') low.v = input(s+1, &s); else ++errin; - if (*s == ',') upp.v = input(s+1, &s); else ++errin; + if (*s) low.u = input(s, &s); else { low.u = 0; ++errin; } + if (*s == ',') upp.u = input(s+1, &s); else { upp.u = 0; ++errin; } + if (*s == ',') low.v = input(s+1, &s); else { low.v = 0; ++errin; } + if (*s == ',') upp.v = input(s+1, &s); else { upp.v = 0; ++errin; } if (errin) emess(16,"null or absent -T parameters"); if (*s == ',') if (*++s != ',') res = strtol(s, &s, 10); |
