From 3fd6cafe9f09a34884bc238b66467edd11e8cfee Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sun, 13 Oct 2013 22:41:41 +0200 Subject: [PATCH] Avoid warnings about missing initializers. --- performance_timing.c | 2 +- serval.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/performance_timing.c b/performance_timing.c index 7c989b18..c37b8b70 100644 --- a/performance_timing.c +++ b/performance_timing.c @@ -138,7 +138,7 @@ int fd_clearstats() int fd_showstats() { - struct profile_total total={NULL, 0, "Total", 0,0,0}; + struct profile_total total={NULL, 0, "Total", 0,0,0,0}; stats_head = sort(stats_head); diff --git a/serval.h b/serval.h index 96284911..e46369fe 100644 --- a/serval.h +++ b/serval.h @@ -391,7 +391,7 @@ struct overlay_buffer; struct overlay_frame; struct broadcast; -#define STRUCT_SCHED_ENT_UNUSED {.poll.fd=-1, ._poll_index=-1,} +#define STRUCT_SCHED_ENT_UNUSED {.poll={.fd=-1}, ._poll_index=-1,} extern int overlayMode;