[msvc] Fix compilation errors and warnings (#141)
This commit is contained in:
@@ -15,7 +15,12 @@
|
||||
#include <mbgl/util/chrono.hpp>
|
||||
|
||||
#include <mbgl/storage/sqlite3.hpp>
|
||||
|
||||
#if defined(__QT__) && defined(_WIN32) && !defined(__GNUC__)
|
||||
#include <QtZlib/zlib.h>
|
||||
#else
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
//TODO: replace by mbgl::util::MBTILES_PROTOCOL
|
||||
|
||||
@@ -137,7 +137,7 @@ void OfflineDatabase::handleError(const char* action) {
|
||||
handleError(ex, action);
|
||||
} catch (const util::IOException& ex) {
|
||||
handleError(ex, action);
|
||||
} catch (const MapboxTileLimitExceededException& ex) {
|
||||
} catch (const MapboxTileLimitExceededException&) {
|
||||
throw; // This is ours and must be handled on client side.
|
||||
} catch (const std::runtime_error& ex) {
|
||||
handleError(ex, action);
|
||||
|
||||
Reference in New Issue
Block a user