diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-02-26 14:07:30 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-02-26 14:39:03 +0100 |
| commit | 0cbb3c200d467a520783b07c0774bf3c62cac9b9 (patch) | |
| tree | 8baa38a6eac6d2f53c30651f9e762e4edc046de6 /src/proj.c | |
| parent | ac66e57366f11cd76d187dbc1e482d3f131dcd72 (diff) | |
| download | PROJ-0cbb3c200d467a520783b07c0774bf3c62cac9b9.tar.gz PROJ-0cbb3c200d467a520783b07c0774bf3c62cac9b9.zip | |
Raise MSVC warning level to /W4
Diffstat (limited to 'src/proj.c')
| -rw-r--r-- | src/proj.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -20,6 +20,10 @@ #define MAX_LINE 1000 #define MAX_PARGS 100 #define PJ_INVERS(P) (P->inv ? 1 : 0) + +extern void gen_cheb(int, projUV(*)(projUV), char *, PJ *, int, char **); + + static PJ *Proj; static projUV @@ -58,7 +62,7 @@ int_proj(projUV data) { } static void /* file processing function */ process(FILE *fid) { - char line[MAX_LINE+3], *s, pline[40]; + char line[MAX_LINE+3], *s = 0, pline[40]; projUV data; for (;;) { @@ -91,7 +95,7 @@ process(FILE *fid) { data.u = HUGE_VAL; if (!*s && (s > line)) --s; /* assumed we gobbled \n */ if (!bin_out && echoin) { - int t; + char t; t = *s; *s = '\0'; (void)fputs(line, stdout); @@ -440,8 +444,6 @@ int main(int argc, char **argv) { } else proj = pj_fwd; if (cheby_str) { - extern void gen_cheb(int, projUV(*)(projUV), char *, PJ *, int, char **); - gen_cheb(inverse, int_proj, cheby_str, Proj, iargc, iargv); exit(0); } |
