From e01a788c44cb99a259cda99ae147a93e6ec8e93d Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Tue, 5 May 2020 14:03:19 -0400 Subject: [PATCH] lib: make hook.h cpp-compatible Some CPP compilers don't support these designated initializers, since we're just zero initializing don't need em Signed-off-by: Quentin Young --- lib/hook.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hook.h b/lib/hook.h index 3823cebe6a..bef5351e90 100644 --- a/lib/hook.h +++ b/lib/hook.h @@ -145,7 +145,7 @@ extern void _hook_register(struct hook *hook, struct hookent *stackent, */ #define _hook_reg_svar(hook, funcptr, arg, has_arg, module, funcname, prio) \ do { \ - static struct hookent stack_hookent = { .ent_on_heap = 0, }; \ + static struct hookent stack_hookent = {}; \ _hook_register(hook, &stack_hookent, funcptr, arg, has_arg, \ module, funcname, prio); \ } while (0)