diff --git a/epan/except.c b/epan/except.c index f740ebc012..8529a8a24a 100644 --- a/epan/except.c +++ b/epan/except.c @@ -139,7 +139,7 @@ void except_deinit(void) static int init_counter; static void unhandled_catcher(except_t *); static void (*uh_catcher_ptr)(except_t *) = unhandled_catcher; -static void *(*allocator)(size_t) = g_malloc; +static void *(*allocator)(size_t) = (void *(*)(size_t)) g_malloc; static void (*deallocator)(void *) = g_free; static struct except_stacknode *stack_top;