Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Apr 24, 2016
1 parent 24b259a commit 2bd20de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolshowhidelabels.cpp
Expand Up @@ -287,7 +287,7 @@ bool QgsMapToolShowHideLabels::showHide( QgsVectorLayer *vl, const bool show )
}

// check if attribute value is already the same
if ( showSuccess && showVal == show )
if ( showSuccess && ( showVal != 0 ) == show )
{
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfsfeatureiterator.cpp
Expand Up @@ -692,7 +692,7 @@ bool QgsWFSFeatureIterator::fetchFeature( QgsFeature& f )
g->fromWkb( wkbClone, wkbGeom.size() );
cachedFeature.setGeometry( g );
}
catch ( const QgsWkbException& e )
catch ( const QgsWkbException& )
{
QgsDebugMsg( QString( "Invalid WKB for cached feature %1" ).arg( cachedFeature.id() ) );
delete[] wkbClone;
Expand Down

0 comments on commit 2bd20de

Please sign in to comment.