Skip to content

Commit 9ad30dc

Browse files
author
timlinux
committedJan 14, 2007
Remove compiler warnings about unused vars
git-svn-id: http://svn.osgeo.org/qgis/trunk@6432 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 56f629f commit 9ad30dc

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed
 

‎src/core/raster/qgsrasterlayer.cpp

+15-4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
Please sign in to comment.