TCF Agent: add missing field initializers
GCC complains when called with -Wextra.
Change-Id: Iec0b34ee37c9f5c6ec0f65d1a68b8c7dafba5d8c
Signed-off-by: Mircea Gherzan <mircea.gherzan@intel.com>
diff --git a/agent/tcf/framework/context-mux.h b/agent/tcf/framework/context-mux.h
index f68f07b..07507f0 100644
--- a/agent/tcf/framework/context-mux.h
+++ b/agent/tcf/framework/context-mux.h
@@ -116,6 +116,8 @@
#if ENABLE_ContextBreakpointCapabilities
sys_context_get_breakpoint_capabilities,
#endif
+ { 0 },
+ { 0 }
};
static void sys_send_context_created_event(Context * ctx) {
diff --git a/agent/tcf/framework/pid-hash.h b/agent/tcf/framework/pid-hash.h
index 1bf0376..113ead8 100644
--- a/agent/tcf/framework/pid-hash.h
+++ b/agent/tcf/framework/pid-hash.h
@@ -75,7 +75,7 @@
static void ini_context_pid_hash(void) {
int i;
- static ContextEventListener l = { NULL, pid_hash_context_exited };
+ static ContextEventListener l = { NULL, pid_hash_context_exited, NULL, NULL, NULL, NULL };
for (i = 0; i < CONTEXT_PID_HASH_SIZE; i++) list_init(context_pid_hash + i);
pid_hash_link_offset = context_extension(sizeof(LINK));
add_context_event_listener(&l, NULL);