From b38cc82b82867c34b1dee9dac0ac3178d06ebacc Mon Sep 17 00:00:00 2001 From: Jeremy Lakeman Date: Wed, 28 Jun 2017 13:34:38 +0930 Subject: [PATCH] Tweak structure initialisation to avoid old gcc warnings --- overlay_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay_packet.h b/overlay_packet.h index 7f1e4399..fd24984e 100644 --- a/overlay_packet.h +++ b/overlay_packet.h @@ -151,7 +151,7 @@ DECLARE_SECTION(struct internal_binding, bindings); static struct internal_binding BIND ## FUNC IN_SECTION(bindings) = { \ .port = PORT, \ .function = FUNC, \ - .stats.name = #FUNC, \ + .stats = {.name = #FUNC, }, \ } #endif //__SERVAL_DNA__OVERLAY_PACKET_H