ethdev: fix C11 extensions in exported TM header
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 4 Aug 2017 11:56:21 +0000 (13:56 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 4 Aug 2017 23:18:21 +0000 (01:18 +0200)
commit4f28b83c451b4e458fa422971bfccf1b9197d168
treef5a8866c4598c70a72bed47199655e199cc7abdf
parent92ac1d5a13859e5dc65c94aaa94559680f2e26c9
ethdev: fix C11 extensions in exported TM header

Fix issues reported by check-includes.sh:

 rte_tm.h:473:2: error: anonymous unions are a C11 extension
     [-Werror,-Wc11-extensions]
 rte_tm.h:696:2: error: anonymous unions are a C11 extension
     [-Werror,-Wc11-extensions]
 rte_tm.h:904:2: error: anonymous unions are a C11 extension
     [-Werror,-Wc11-extensions]

Fixes: 5d109deffa87 ("ethdev: add traffic management API")

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_ether/rte_tm.h