From: Justin Pettit Date: Wed, 6 May 2015 22:25:36 +0000 (-0700) Subject: match: Fix compile of match initializer on GCC 4.6.1. X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=ccccabda010d7ecc8498e15174b71c1b4f3ac00b;p=ovs.git match: Fix compile of match initializer on GCC 4.6.1. GCC 4.6.1 complained about the match structure not being properly initialzed when using MATCH_CATCHALL_INITIALIZER macro. Signed-off-by: Justin Pettit Acked-by: Russell Bryant --- diff --git a/lib/match.h b/lib/match.h index 638c49d3c..10aa0afc4 100644 --- a/lib/match.h +++ b/lib/match.h @@ -36,7 +36,7 @@ struct match { }; /* Initializer for a "struct match" that matches every packet. */ -#define MATCH_CATCHALL_INITIALIZER { .flow.dl_type = 0 } +#define MATCH_CATCHALL_INITIALIZER { .flow = { .dl_type = 0 } } void match_init(struct match *, const struct flow *, const struct flow_wildcards *);