Skip to content

Commit 7551aa7

Browse files
committedFeb 7, 2013
fix warning
1 parent cb7f7bf commit 7551aa7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎CMakeLists.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ IF (PEDANTIC)
299299
# disable warnings
300300
ADD_DEFINITIONS( /wd4100 ) # unused formal parameters
301301
ADD_DEFINITIONS( /wd4127 ) # constant conditional expressions (used in Qt template classes)
302+
ADD_DEFINITIONS( /wd4505 ) # unreferenced local function has been removed (QgsRasterDataProvider::extent)
302303
ADD_DEFINITIONS( /wd4510 ) # default constructor could not be generated (sqlite3_index_info, QMap)
303304
ADD_DEFINITIONS( /wd4512 ) # assignment operator could not be generated (sqlite3_index_info)
304305
ADD_DEFINITIONS( /wd4610 ) # user defined constructor required (sqlite3_index_info)

‎src/core/qgsvectorlayerfeatureiterator.cpp‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,7 @@ void QgsVectorLayerFeatureIterator::addJoinedAttributes( QgsFeature &f )
341341
for ( ; joinIt != mFetchJoinInfo.constEnd(); ++joinIt )
342342
{
343343
const FetchJoinInfo& info = joinIt.value();
344-
QgsVectorLayer* joinLayer = joinIt.key();
345-
Q_ASSERT( joinLayer );
344+
Q_ASSERT( joinIt.key() );
346345

347346
QVariant targetFieldValue = f.attribute( info.targetField );
348347
if ( !targetFieldValue.isValid() )

0 commit comments

Comments
 (0)
Please sign in to comment.