Skip to content

Commit

Permalink
fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 29, 2011
1 parent dfaba7e commit 743f207
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/gui/symbology-ng/qgsrendererv2widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ QgsRendererV2Widget::QgsRendererV2Widget( QgsVectorLayer* layer, QgsStyleV2* sty
{
}

void QgsRendererV2Widget::contextMenuViewCategories( const QPoint& p )
void QgsRendererV2Widget::contextMenuViewCategories( const QPoint & )
{
QMenu contextMenu;
contextMenu.addAction( tr( "Change color" ), this, SLOT( changeSymbolColor( ) ) );
Expand Down
3 changes: 3 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ void QgsOgrProvider::setRelevantFields( bool fetchGeometry, const QgsAttributeLi

OGR_L_SetIgnoredFields( ogrLayer, ignoredFields.data() );
}
#else
Q_UNUSED( fetchGeometry );
Q_UNUSED( fetchAttributes );
#endif
}

Expand Down
5 changes: 2 additions & 3 deletions src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4558,9 +4558,8 @@ void QgsPGRootItem::connectionsChanged()

QGISEXTERN QgsDataItem * dataItem( QString thePath, QgsDataItem* parentItem )
{
QgsPGRootItem * root = new QgsPGRootItem( parentItem, "PostGIS", "pg:" );

return root;
Q_UNUSED( thePath );
return new QgsPGRootItem( parentItem, "PostGIS", "pg:" );
}

QGISEXTERN QgsVectorLayerImport::ImportError createEmptyLayer(
Expand Down
2 changes: 1 addition & 1 deletion tests/src/core/testqgsapplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void TestQgsApplication::initTestCase()
// init QGIS's paths - true means that all path will be inited from prefix
QString qgisPath = QCoreApplication::applicationDirPath();
QgsApplication::setPrefixPath( INSTALL_PREFIX, true );
qDebug( "%s", QgsApplication::showSettings().toUtf8() );
qDebug( "%s", QgsApplication::showSettings().toUtf8().constData() );
};

void TestQgsApplication::checkTheme()
Expand Down

0 comments on commit 743f207

Please sign in to comment.