From 4e9688e430037b9a454320d8b29a5c99a9616fba Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 17 Oct 2014 11:11:24 -0700 Subject: [PATCH] Fix compiler warnings --- include/mbgl/platform/event.hpp | 6 ++++-- test/fixtures/fixture_request.cpp | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/mbgl/platform/event.hpp b/include/mbgl/platform/event.hpp index d2a06618a..576e9e5b8 100644 --- a/include/mbgl/platform/event.hpp +++ b/include/mbgl/platform/event.hpp @@ -58,8 +58,10 @@ struct EventPermutation { }; constexpr EventSeverity disabledEventSeverities[] = { -#if !DEBUG - EventSeverity::Debug, +#if DEBUG + EventSeverity(-1) // Avoid zero size array +#else + EventSeverity::Debug #endif }; diff --git a/test/fixtures/fixture_request.cpp b/test/fixtures/fixture_request.cpp index 3f72b890d..be944eb07 100644 --- a/test/fixtures/fixture_request.cpp +++ b/test/fixtures/fixture_request.cpp @@ -48,7 +48,7 @@ void HTTPRequestBaton::start(const util::ptr &baton) { uv_async_send(baton->async); } -void HTTPRequestBaton::stop(const util::ptr &baton) { +void HTTPRequestBaton::stop(const util::ptr &/*baton*/) { fprintf(stderr, "HTTP request cannot be canceled because it is answered immediately"); abort(); }