Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Dec 15, 2013
1 parent c4b2480 commit 6e775b9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/qgscrscache.h
Expand Up @@ -32,7 +32,10 @@ class CORE_EXPORT QgsCoordinateTransformCache
~QgsCoordinateTransformCache();
/**Returns coordinate transformation. Cache keeps ownership
@param srcAuthId auth id string of source crs
@param destAuthId auth id string of dest crs*/
@param destAuthId auth id string of dest crs
@param srcDatumTransform id of source's datum transform
@param destDatumTransform id of destinations's datum transform
*/
const QgsCoordinateTransform* transform( const QString& srcAuthId, const QString& destAuthId, int srcDatumTransform = -1, int destDatumTransform = -1 );
/**Removes transformations where a changed crs is involved from the cache*/
void invalidateCrs( const QString& crsAuthId );
Expand Down
1 change: 1 addition & 0 deletions src/core/symbology-ng/qgssymbollayerv2.cpp
Expand Up @@ -190,6 +190,7 @@ QgsFillSymbolLayerV2::QgsFillSymbolLayerV2( bool locked )

void QgsMarkerSymbolLayerV2::startRender( QgsSymbolV2RenderContext& context )
{
Q_UNUSED( context );
mOffsetExpression = expression( "offset" );
mHorizontalAnchorExpression = expression( "horizontal_anchor_point" );
mVerticalAnchorExpression = expression( "vertical_anchor_point" );
Expand Down
2 changes: 2 additions & 0 deletions src/mapserver/qgis_map_serv.cpp
Expand Up @@ -240,6 +240,7 @@ int main( int argc, char * argv[] )
QgsMapRenderer* theMapRenderer = new QgsMapRenderer();
theMapRenderer->setLabelingEngine( new QgsPalLabeling() );

#ifdef QGSMSDEBUG
// load standard test font from testdata.qrc (for unit tests)
bool testFontLoaded = false;
QFile testFont( ":/testdata/font/FreeSansQGIS.ttf" );
Expand All @@ -248,6 +249,7 @@ int main( int argc, char * argv[] )
int fontID = QFontDatabase::addApplicationFontFromData( testFont.readAll() );
testFontLoaded = ( fontID != -1 );
} // else app wasn't built with ENABLE_TESTS or not GUI app
#endif

while ( fcgi_accept() >= 0 )
{
Expand Down
2 changes: 2 additions & 0 deletions src/plugins/globe/globe_plugin.cpp
Expand Up @@ -873,6 +873,8 @@ void GlobePlugin::setSkyParameters( bool enabled, const QDateTime& dateTime, boo

#if OSGEARTH_VERSION_GREATER_OR_EQUAL( 2, 4, 0 )
mSkyNode->setAutoAmbience( autoAmbience );
#else
Q_UNUSED( autoAmbience );
#endif
mSkyNode->setDateTime( dateTime.date().year()
, dateTime.date().month()
Expand Down
1 change: 1 addition & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -800,6 +800,7 @@ void QgsOgrProvider::setRelevantFields( OGRLayerH ogrLayer, bool fetchGeometry,
mRelevantFieldsForNextFeature = false;

#else
Q_UNUSED( ogrLayer );
Q_UNUSED( fetchGeometry );
Q_UNUSED( fetchAttributes );
#endif
Expand Down

0 comments on commit 6e775b9

Please sign in to comment.