Skip to content
Permalink
Browse files

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
timlinux committed Jan 14, 2007
1 parent d1634ad commit 1d99e39e4b4aea0f4fa1b17ecbe6d1a4ae13fd87
Showing with 15 additions and 4 deletions.
  1. +15 −4 src/core/raster/qgsrasterlayer.cpp
@@ -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");
@@ -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

0 comments on commit 1d99e39

Please sign in to comment.
You can’t perform that action at this time.