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>
#include <stdint.h>
+#include <rte_common.h>
+
#ifdef __cplusplus
extern "C" {
#endif
*/
int leaf_nodes_identical;
+ RTE_STD_C11
union {
/** Items valid only for the non-leaf nodes on this level. */
struct {
*/
uint32_t shaper_shared_n_max;
+ RTE_STD_C11
union {
/** Items valid only for non-leaf nodes. */
struct {
/** Number of shared shaper IDs in the *shared_shaper_id* array. */
uint32_t n_shared_shapers;
+ RTE_STD_C11
union {
/** Parameters only valid for non-leaf nodes. */
struct {