ofp-actions: Fix build on earlier GCC.
authorJoe Stringer <joestringer@nicira.com>
Fri, 16 Oct 2015 22:31:59 +0000 (15:31 -0700)
committerJoe Stringer <joestringer@nicira.com>
Fri, 16 Oct 2015 23:17:13 +0000 (16:17 -0700)
commitc7e69808bdb4beb5df2f69b964d448487e775926
tree28271aa7ced722a20f1bbe67595e515b577e65da
parent419e9afa445ee481d09e95411e07a0edda0fafac
ofp-actions: Fix build on earlier GCC.

GCC4.4 gets confused by anonymous fields + flexible fields, complains:
lib/ofp-actions.h:510: error: flexible array member in otherwise empty
struct
lib/ofp-actions.h:512: error: bit-field ‘build_assert_failed’ width not
an integer constant
lib/ofp-actions.h:514: error: bit-field ‘build_assert_failed’ width not
an integer constant

Fix the problem by specifying the actions length as zero.

Reported-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Joe Stringer <joestringer@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
lib/ofp-actions.h