diff --git a/src/core/spatialindex/include/Tools.h b/src/core/spatialindex/include/Tools.h index b276f5d7be3..7884be95030 100644 --- a/src/core/spatialindex/include/Tools.h +++ b/src/core/spatialindex/include/Tools.h @@ -25,8 +25,10 @@ #ifdef _MSC_VER #include #include -#endif//_MSC_VER +typedef unsigned __int8 uint8_t; +#else #include +#endif//_MSC_VER #include #include #include diff --git a/src/core/spatialindex/qgsspatialindex.cpp b/src/core/spatialindex/qgsspatialindex.cpp index d9291be6cfa..c3a80f1a28d 100644 --- a/src/core/spatialindex/qgsspatialindex.cpp +++ b/src/core/spatialindex/qgsspatialindex.cpp @@ -113,10 +113,12 @@ bool QgsSpatialIndex::insertFeature( QgsFeature& f ) } catch ( Tools::Exception &e ) { + Q_UNUSED(e); QgsDebugMsg( QString( "Tools::Exception caught: " ).arg( e.what().c_str() ) ); } catch ( const std::exception &e ) { + Q_UNUSED(e); QgsDebugMsg( QString( "std::exception caught: " ).arg( e.what() ) ); } catch ( ... ) diff --git a/src/core/spatialindex/rtree/RTree.cc b/src/core/spatialindex/rtree/RTree.cc index 790a5b1e119..20b054d4a3b 100644 --- a/src/core/spatialindex/rtree/RTree.cc +++ b/src/core/spatialindex/rtree/RTree.cc @@ -1177,6 +1177,7 @@ long SpatialIndex::RTree::RTree::writeNode( Node* n ) } catch ( Tools::InvalidPageException& e ) { + Q_UNUSED(e); delete[] buffer; QgsDebugMsg( e.what().c_str() ); throw Tools::IllegalStateException( "writeNode: failed with Tools::InvalidPageException" ); @@ -1222,6 +1223,7 @@ SpatialIndex::RTree::NodePtr SpatialIndex::RTree::RTree::readNode( unsigned long } catch ( Tools::InvalidPageException& e ) { + Q_UNUSED(e); QgsDebugMsg( e.what().c_str() ); throw Tools::IllegalStateException( "readNode: failed with Tools::InvalidPageException" ); } @@ -1272,6 +1274,7 @@ void SpatialIndex::RTree::RTree::deleteNode( Node* n ) } catch ( Tools::InvalidPageException& e ) { + Q_UNUSED(e); QgsDebugMsg( e.what().c_str() ); throw Tools::IllegalStateException( "deleteNode: failed with Tools::InvalidPageException" ); }