Skip to content

Commit 48ecd76

Browse files
committed
Coverity Scan warning fixes
1 parent 804fa14 commit 48ecd76

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/gdalgetgdalpath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ std::string GDALGetGDALPath()
121121
if (VSIStatL(osBinFilename.c_str(), &sStat) == 0)
122122
{
123123
// Case if osGDALLib=/usr/lib/libgdal.so.xxx
124-
osPath = osBinFilename;
124+
osPath = std::move(osBinFilename);
125125
}
126126
else
127127
{

frmts/zarr/zarr_group.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
ZarrGroupBase::~ZarrGroupBase()
2626
{
27-
ZarrGroupBase::Close();
27+
CPL_IGNORE_RET_VAL(ZarrGroupBase::Close());
2828
}
2929

3030
/************************************************************************/

0 commit comments

Comments
 (0)