diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-10-17 11:11:24 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-10-17 11:12:31 -0700 |
commit | 4e9688e430037b9a454320d8b29a5c99a9616fba (patch) | |
tree | 2a414ee7ac23d244c6d0db3738f782bbeeea4206 /include | |
parent | 4603ca037cab2d0f732285ce9e006744ad3118d6 (diff) | |
download | qtlocation-mapboxgl-4e9688e430037b9a454320d8b29a5c99a9616fba.tar.gz |
Fix compiler warnings
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/platform/event.hpp | 6 |
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 }; |