[msvc] Fix compilation errors and warnings (#141)

This commit is contained in:
Tadej Novak
2021-08-29 22:53:42 +02:00
committed by GitHub
parent c0d76c69cc
commit fe041b80ca
51 changed files with 206 additions and 195 deletions

View File

@@ -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

View File

@@ -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);