File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -2605,15 +2605,25 @@ const QgsRasterBandStats QgsRasterLayer::getRasterBandStats(int theBandNoInt)
26052605 QgsDebugMsg (" myGdalBand->GetMinimum() failed" );
26062606 }
26072607
2608+ // ifdefs below to remove compiler warning about unused vars
2609+ #ifdef QGISDEBUG
26082610 double GDALmaximum = myGdalBand->GetMaximum ( &success );
2609-
2611+ #else
2612+ myGdalBand->GetMaximum ( &success );
2613+ #endif
2614+
26102615 if ( ! success )
26112616 {
26122617 QgsDebugMsg (" myGdalBand->GetMaximum() failed" );
26132618 }
26142619
2620+ // ifdefs below to remove compiler warning about unused vars
2621+ #ifdef QGISDEBUG
26152622 double GDALnodata = myGdalBand->GetNoDataValue ( &success );
2616-
2623+ #else
2624+ myGdalBand->GetNoDataValue ( &success );
2625+ #endif
2626+
26172627 if ( ! success )
26182628 {
26192629 QgsDebugMsg (" myGdalBand->GetNoDataValue() failed" );
@@ -3270,8 +3280,9 @@ QPixmap QgsRasterLayer::getDetailedLegendQPixmap(int theLabelCountInt=3)
32703280 int myFontHeight = (myQFontMetrics.height () );
32713281 const int myInterLabelSpacing = 5 ;
32723282 int myImageHeightInt = ((myFontHeight + (myInterLabelSpacing*2 )) * theLabelCountInt);
3273- int myLongestLabelWidthInt = myQFontMetrics.width (this ->name ());
3274- const int myHorizontalLabelSpacing = 5 ;
3283+ // these next two vars are not used anywhere so commented out for now
3284+ // int myLongestLabelWidthInt = myQFontMetrics.width(this->name());
3285+ // const int myHorizontalLabelSpacing = 5;
32753286 const int myColourBarWidthInt = 10 ;
32763287 //
32773288 // Get the adjusted matrix stats
You can’t perform that action at this time.
0 commit comments