From: Ed Czeck Date: Thu, 24 Jan 2019 14:36:37 +0000 (-0500) Subject: mbuf: fix struct initialization with C++ X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=14ff7fb97eb4f4935c11959f948bfbb6a2fb710a;p=dpdk.git mbuf: fix struct initialization with C++ g++ reports "error: missing initializer for member" Fixes: 5d3f72100904 ("mbuf: implement generic format for sched field") Signed-off-by: Ed Czeck --- diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index d716294751..a7f67023ad 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -2464,6 +2464,7 @@ rte_mbuf_sched_set(struct rte_mbuf *m, uint32_t queue_id, .queue_id = queue_id, .traffic_class = traffic_class, .color = color, + .reserved = 0, }; }