summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-10-17 11:11:24 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-10-17 11:12:31 -0700
commit4e9688e430037b9a454320d8b29a5c99a9616fba (patch)
tree2a414ee7ac23d244c6d0db3738f782bbeeea4206 /include
parent4603ca037cab2d0f732285ce9e006744ad3118d6 (diff)
downloadqtlocation-mapboxgl-4e9688e430037b9a454320d8b29a5c99a9616fba.tar.gz
Fix compiler warnings
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/platform/event.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mbgl/platform/event.hpp b/include/mbgl/platform/event.hpp
index d2a06618a3..576e9e5b85 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
};