mirror of
https://github.com/openvswitch/ovs
synced 2025-10-17 14:28:02 +00:00
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 <jpettit@nicira.com> Acked-by: Russell Bryant <rbryant@redhat.com>
This commit is contained in:
@@ -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 *);
|
||||
|
Reference in New Issue
Block a user