diff --git a/src/app/qgsfeatureaction.cpp b/src/app/qgsfeatureaction.cpp index 773b01d2b02..c799751d3ea 100644 --- a/src/app/qgsfeatureaction.cpp +++ b/src/app/qgsfeatureaction.cpp @@ -223,6 +223,7 @@ bool QgsFeatureAction::addFeature( const QgsAttributeMap& defaultAttributes ) void QgsFeatureAction::onFeatureSaved( const QgsFeature& feature ) { QgsAttributeForm* form = qobject_cast( sender() ); + Q_UNUSED( form ) // only used for Q_ASSERT Q_ASSERT( form ); mFeatureSaved = true; diff --git a/src/gui/qgsattributeform.cpp b/src/gui/qgsattributeform.cpp index 44548ef53fd..110b5049cdd 100644 --- a/src/gui/qgsattributeform.cpp +++ b/src/gui/qgsattributeform.cpp @@ -245,6 +245,7 @@ void QgsAttributeForm::onAttributeChanged( const QVariant& value ) void QgsAttributeForm::onAttributeAdded( int idx ) { + Q_UNUSED( idx ) // only used for Q_ASSERT if ( mFeature.isValid() ) { QgsAttributes attrs = mFeature.attributes();