diff --git a/src/providers/postgres/raster/qgspostgresrasterprovider.cpp b/src/providers/postgres/raster/qgspostgresrasterprovider.cpp index bd71b29b279..557effb7188 100644 --- a/src/providers/postgres/raster/qgspostgresrasterprovider.cpp +++ b/src/providers/postgres/raster/qgspostgresrasterprovider.cpp @@ -458,11 +458,11 @@ bool QgsPostgresRasterProvider::readBlock( int bandNo, const QgsRectangle &viewE GF_Write, xOff, yOff, - tile.width, - tile.height, + static_cast( tile.width ), + static_cast( tile.height ), ( void * )( tile.data.constData() ), // old-style because of const - tile.width, - tile.height, + static_cast( tile.width ), + static_cast( tile.height ), gdalDataType, 0, 0 ); @@ -1398,7 +1398,7 @@ int QgsPostgresRasterProvider::xBlockSize() const } else { - return mWidth; + return static_cast( mWidth ); } } @@ -1410,12 +1410,13 @@ int QgsPostgresRasterProvider::yBlockSize() const } else { - return mHeight; + return static_cast( mHeight ); } } QgsRasterBandStats QgsPostgresRasterProvider::bandStatistics( int bandNo, int stats, const QgsRectangle &extent, int sampleSize, QgsRasterBlockFeedback *feedback ) { + Q_UNUSED( feedback ) QgsRasterBandStats rasterBandStats; const auto constMStatistics = mStatistics; initStatistics( rasterBandStats, bandNo, stats, extent, sampleSize );