fix some warnings

This commit is contained in:
Juergen E. Fischer 2011-09-29 21:51:12 +00:00
parent dfaba7e16b
commit 743f207575
4 changed files with 7 additions and 5 deletions

View File

@ -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( ) ) );

View File

@ -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
}

View File

@ -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(

View File

@ -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()