diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-03-26 13:47:20 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-03-26 13:47:20 +0100 |
| commit | 9772b40bba6c020bfc48d00a886ca6c7c0e2770b (patch) | |
| tree | 7c4b914b6cbbba991d80a30a3eb0c9737047cd6c /src | |
| parent | 909f5253bc2963ab4368f19af517adb844a80752 (diff) | |
| download | PROJ-9772b40bba6c020bfc48d00a886ca6c7c0e2770b.tar.gz PROJ-9772b40bba6c020bfc48d00a886ca6c7c0e2770b.zip | |
io.cpp: avoid error about unchecked return value. Coverity CID 193541
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/io.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/iso19111/io.cpp b/src/iso19111/io.cpp index afacb1be..502f30e6 100644 --- a/src/iso19111/io.cpp +++ b/src/iso19111/io.cpp @@ -6734,6 +6734,9 @@ static double getNumericValue(const std::string ¶mValue, } // --------------------------------------------------------------------------- +namespace { +template <class T> inline void ignoreRetVal(T) {} +} GeographicCRSNNPtr PROJStringParser::Private::buildGeographicCRS(int iStep, int iUnitConvert, @@ -6746,7 +6749,7 @@ PROJStringParser::Private::buildGeographicCRS(int iStep, int iUnitConvert, // units=m is often found in the wild. // No need to create a extension string for this - hasParamValue(step, "units"); + ignoreRetVal(hasParamValue(step, "units")); auto datum = buildDatum(step, title); |
