Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove compiler warnings about unused vars
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6432 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jan 14, 2007
1 parent d1634ad commit 1d99e39
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/core/raster/qgsrasterlayer.cpp
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 1d99e39

Please sign in to comment.