From bfcedee0385cdb0b5f6ed063075a664d513b342e Mon Sep 17 00:00:00 2001 From: Sebastian Hahn Date: Thu, 13 Aug 2015 15:04:14 +0200 Subject: [PATCH] Add a prototype for event_disable_debug_mode() Exporting this function seems rather useless, as debugging mode has to be enabled early and calling this function doesn't allow it to get toggled back on later. Fixes a compile warning when using clang 3.6. Fixes #271 Fixes #224 --- event-internal.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/event-internal.h b/event-internal.h index bf164cd5..66dcfc32 100644 --- a/event-internal.h +++ b/event-internal.h @@ -465,6 +465,13 @@ void event_base_assert_ok_nolock_(struct event_base *base); int event_base_foreach_event_nolock_(struct event_base *base, event_base_foreach_event_cb cb, void *arg); +/* Cleanup function to reset debug mode during shutdown. + * + * Calling this function doesn't mean it'll be possible to re-enable + * debug mode if any events were added. + */ +void event_disable_debug_mode(void); + #ifdef __cplusplus } #endif -- 2.40.0