Skip to content

Commit b8e7523

Browse files
committedOct 1, 2015
fixed travis warning
1 parent 24fe216 commit b8e7523

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/providers/grass/qgsgrassvectormap.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,7 @@ void QgsGrassVectorMap::printDebug()
539539
}
540540
G_TRY
541541
{
542+
#ifdef QGISDEBUG
542543
int ncidx = Vect_cidx_get_num_fields( mMap );
543544
QgsDebugMsg( QString( "ncidx = %1" ).arg( ncidx ) );
544545

@@ -548,9 +549,11 @@ void QgsGrassVectorMap::printDebug()
548549
int ncats = Vect_cidx_get_num_cats_by_index( mMap, i );
549550
QgsDebugMsg( QString( "i = %1 layer = %2 ncats = %3" ).arg( i ).arg( layer ).arg( ncats ) );
550551
}
552+
#endif
551553
}
552554
G_CATCH( QgsGrass::Exception &e )
553555
{
556+
Q_UNUSED( e )
554557
QgsDebugMsg( "Cannot read info from map: " + QString( e.what() ) );
555558
}
556559
}

0 commit comments

Comments
 (0)
Please sign in to comment.