Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jan 15, 2014
1 parent 8fb87f1 commit 84fe676
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -1106,6 +1106,6 @@ void QgsVectorLayerProperties::on_mSimplifyDrawingGroupBox_toggled( bool checked
}
else
{
mSimplifyDrawingAtProvider->setEnabled( mSimplifyDrawingGroupBox->isChecked() );
mSimplifyDrawingAtProvider->setEnabled( checked );
}
}
1 change: 1 addition & 0 deletions src/core/qgsfeatureiterator.cpp
Expand Up @@ -121,6 +121,7 @@ bool QgsAbstractFeatureIterator::prepareSimplification( const QgsSimplifyMethod&

bool QgsAbstractFeatureIterator::providerCanSimplify( QgsSimplifyMethod::MethodType methodType ) const
{
Q_UNUSED( methodType )
return false;
}

Expand Down
1 change: 1 addition & 0 deletions src/providers/ogr/qgsogrgeometrysimplifier.cpp
Expand Up @@ -94,6 +94,7 @@ OGRRawPoint* QgsOgrMapToPixelSimplifier::mallocPoints( int numPoints )
//! Simplifies the OGR-geometry (Removing duplicated points) when is applied the specified map2pixel context
bool QgsOgrMapToPixelSimplifier::simplifyOgrGeometry( QGis::GeometryType geometryType, const QgsRectangle& envelope, double* xptr, int xStride, double* yptr, int yStride, int pointCount, int& pointSimplifiedCount )
{
Q_UNUSED( envelope )
bool canbeGeneralizable = ( mSimplifyFlags & QgsMapToPixelSimplifier::SimplifyGeometry );

pointSimplifiedCount = pointCount;
Expand Down

3 comments on commit 84fe676

@ahuarte47
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Matthias-Kuhn, I dont know how trace this UNUSED warnings

@m-kuhn
Copy link
Member Author

@m-kuhn m-kuhn commented on 84fe676 Jan 15, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a gcc thing. I don't know if there's a possibility to track that with VS. But if not, there's no reason to worry.

@ahuarte47
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I study it

Please sign in to comment.