Skip to content

Commit a273b3e

Browse files
committed
Avoid compiler warning with gcc 9.4 -O1
1 parent 3d39417 commit a273b3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frmts/snap_tiff/snaptiffdriver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "libertiff.hpp"
1212

1313
#include <algorithm>
14+
#include <cassert>
1415
#include <cmath>
1516

1617
constexpr const char *SNAP_TIFF_PREFIX = "SNAP_TIFF:";
@@ -246,6 +247,7 @@ GDALDataset *SNAPTIFFDataset::Open(GDALOpenInfo *poOpenInfo)
246247

247248
const auto *psTag =
248249
poDS->m_poImage->tag(LIBERTIFF_NS::TagCode::GeoTIFFTiePoints);
250+
assert(psTag);
249251

250252
for (int iBand = 1; iBand <= 2; ++iBand)
251253
{

0 commit comments

Comments
 (0)