diff --git a/gyp/common.gypi b/gyp/common.gypi index b21e8b50d..df055b199 100644 --- a/gyp/common.gypi +++ b/gyp/common.gypi @@ -14,7 +14,7 @@ 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES', 'GCC_ENABLE_CPP_RTTI':'YES', - 'OTHER_CPLUSPLUSFLAGS': [ '-Wall', '-Wextra', '-Wshadow', '-Wno-variadic-macros', '-frtti', '-fexceptions' ], + 'OTHER_CPLUSPLUSFLAGS': [ '-Werror', '-Wall', '-Wextra', '-Wshadow', '-Wno-variadic-macros', '-frtti', '-fexceptions' ], 'GCC_WARN_PEDANTIC': 'YES', 'GCC_WARN_UNINITIALIZED_AUTOS': 'YES_AGGRESSIVE', }, diff --git a/src/storage/response.cpp b/src/storage/response.cpp index f1e1c3587..a08a6d31c 100644 --- a/src/storage/response.cpp +++ b/src/storage/response.cpp @@ -6,10 +6,10 @@ namespace mbgl { int64_t Response::parseCacheControl(const char *value) { if (value) { - uint64_t seconds = 0; + unsigned long long seconds = 0; // TODO: cache-control may contain other information as well: // http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 - if (std::sscanf(value, "max-age=%lu", &seconds) == 1) { + if (std::sscanf(value, "max-age=%llu", &seconds) == 1) { return std::chrono::duration_cast( std::chrono::system_clock::now().time_since_epoch()).count() + seconds;