diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-02-27 23:12:53 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-02-27 23:35:36 +0100 |
| commit | fb87c671f11b5a3a41828727a8b57f6c8397fc79 (patch) | |
| tree | 6c7f0d5b9324323477c98c7a2df0804e24ffe20e /src/apps | |
| parent | f3561e5749fefd957f67cc631378d1c39161a310 (diff) | |
| download | PROJ-fb87c671f11b5a3a41828727a8b57f6c8397fc79.tar.gz PROJ-fb87c671f11b5a3a41828727a8b57f6c8397fc79.zip | |
Fix warnings of latest cppcheck master
Diffstat (limited to 'src/apps')
| -rw-r--r-- | src/apps/proj_strtod.cpp | 2 | ||||
| -rw-r--r-- | src/apps/projinfo.cpp | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/apps/proj_strtod.cpp b/src/apps/proj_strtod.cpp index d4674705..226dfdb9 100644 --- a/src/apps/proj_strtod.cpp +++ b/src/apps/proj_strtod.cpp @@ -263,7 +263,7 @@ double proj_strtod(const char *str, char **endptr) { if ('+'==*p) sign = +1; if (0==sign) { - if (!isdigit(*p) && *p!='_') { + if (!(isdigit(*p) || *p=='_')) { if (endptr) *endptr = p; return HUGE_VAL; diff --git a/src/apps/projinfo.cpp b/src/apps/projinfo.cpp index 41a95237..1e58cfb0 100644 --- a/src/apps/projinfo.cpp +++ b/src/apps/projinfo.cpp @@ -329,9 +329,6 @@ static void outputObject( if (projStringExportable) { if (outputOpt.PROJ5) { try { - if (alreadyOutputed) { - std::cout << std::endl; - } auto crs = nn_dynamic_pointer_cast<CRS>(obj); if (!outputOpt.quiet) { if (crs) { |
