Skip to content

Commit

Permalink
Remove compiler warnings about unused vars
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6432 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 14, 2007
1 parent 56f629f commit 9ad30dc
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/core/raster/qgsrasterlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2605,15 +2605,25 @@ const QgsRasterBandStats QgsRasterLayer::getRasterBandStats(int theBandNoInt)
QgsDebugMsg("myGdalBand->GetMinimum() failed");
}

//ifdefs below to remove compiler warning about unused vars
#ifdef QGISDEBUG
double GDALmaximum = myGdalBand->GetMaximum( &success );

#else
myGdalBand->GetMaximum( &success );
#endif

if ( ! success )
{
QgsDebugMsg("myGdalBand->GetMaximum() failed");
}

//ifdefs below to remove compiler warning about unused vars
#ifdef QGISDEBUG
double GDALnodata = myGdalBand->GetNoDataValue( &success );

#else
myGdalBand->GetNoDataValue( &success );
#endif

if ( ! success )
{
QgsDebugMsg("myGdalBand->GetNoDataValue() failed");
Expand Down Expand Up @@ -3270,8 +3280,9 @@ QPixmap QgsRasterLayer::getDetailedLegendQPixmap(int theLabelCountInt=3)
int myFontHeight = (myQFontMetrics.height() );
const int myInterLabelSpacing = 5;
int myImageHeightInt = ((myFontHeight + (myInterLabelSpacing*2)) * theLabelCountInt);
int myLongestLabelWidthInt = myQFontMetrics.width(this->name());
const int myHorizontalLabelSpacing = 5;
//these next two vars are not used anywhere so commented out for now
//int myLongestLabelWidthInt = myQFontMetrics.width(this->name());
//const int myHorizontalLabelSpacing = 5;
const int myColourBarWidthInt = 10;
//
// Get the adjusted matrix stats
Expand Down

0 comments on commit 9ad30dc

Please sign in to comment.