Skip to content

Commit 15021ef

Browse files
committed
Fix some warnings
1 parent 42e8693 commit 15021ef

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

src/plugins/grass/qgsgrassmoduleinput.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,7 @@ QStringList QgsGrassModuleInput::currentGeometryTypeNames()
969969

970970
void QgsGrassModuleInput::onChanged( const QString & text )
971971
{
972+
Q_UNUSED( text ) // silence warning
972973
QgsDebugMsg( "text = " + text );
973974

974975
if ( multiple() )

src/plugins/grass/qtermwidget/History.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ CompactHistoryLine::CompactHistoryLine ( const TextLine& line, CompactHistoryBlo
634634
Q_ASSERT (text!=NULL);
635635

636636
length=line.size();
637-
//formatLength=formatLength;
638637
wrapped=false;
639638

640639
// record formats and their positions in the format array

src/providers/grass/qgsgrassfeatureiterator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ bool QgsGrassFeatureIterator::fetchFeature( QgsFeature& feature )
249249
int lid = 0;
250250
QgsFeatureId featureId = 0;
251251

252+
#ifdef QGISDEBUG
252253
if ( mSource->mEditing )
253254
{
254255
QgsDebugMsg( "newLids:" );
@@ -257,6 +258,7 @@ bool QgsGrassFeatureIterator::fetchFeature( QgsFeature& feature )
257258
QgsDebugMsg( QString( "%1 -> %2" ).arg( oldLid ).arg( mSource->mLayer->map()->newLids().value( oldLid ) ) );
258259
}
259260
}
261+
#endif
260262

261263
if ( filterById )
262264
{

src/providers/grass/qgsgrassimport.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,9 @@ bool QgsGrassRasterImport::import()
185185
}
186186

187187
QGis::DataType qgis_out_type = QGis::UnknownDataType;
188+
#ifdef QGISDEBUG
188189
RASTER_MAP_TYPE data_type = -1;
190+
#endif
189191
switch ( provider->dataType( band ) )
190192
{
191193
case QGis::Byte:

src/providers/grass/qgsgrassprovider.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,7 @@ void QgsGrassProvider::bufferGeometryChanged( QgsFeatureId fid, QgsGeometry &geo
13371337

13381338
void QgsGrassProvider::onUndoIndexChanged( int index )
13391339
{
1340+
Q_UNUSED( index )
13401341
QgsDebugMsg( QString( "index = %1" ).arg( index ) );
13411342
}
13421343

src/providers/grass/qgsgrassvectormaplayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ void QgsGrassVectorMapLayer::load()
121121
}
122122
else
123123
{
124+
#ifdef QGISDEBUG
124125
int nRecords = db_get_num_rows( &databaseCursor );
125126
QgsDebugMsg( QString( "Number of records: %1" ).arg( nRecords ) );
127+
#endif
126128

127129
dbTable *databaseTable = db_get_cursor_table( &databaseCursor );
128130
int nColumns = db_get_table_number_of_columns( databaseTable );

0 commit comments

Comments
 (0)