summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/event.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform/event.hpp')
-rw-r--r--include/mbgl/platform/event.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/mbgl/platform/event.hpp b/include/mbgl/platform/event.hpp
index 0405cddfad..2aa4aa0c95 100644
--- a/include/mbgl/platform/event.hpp
+++ b/include/mbgl/platform/event.hpp
@@ -57,14 +57,13 @@ struct EventPermutation {
}
};
-#if !DEBUG
constexpr EventSeverity disabledEventSeverities[] = {
- EventSeverity::Debug,
-};
+#if DEBUG
+ EventSeverity(-1) // Avoid zero size array
#else
-constexpr EventSeverity *disabledEventSeverities = nullptr;
+ EventSeverity::Debug
#endif
-
+};
constexpr Event disabledEvents[] = {
Event(-1) // Avoid zero size array