[ovs-git] [openvswitch/ovs] c7e698: ofp-actions: Fix build on earlier GCC.

GitHub noreply at github.com
Fri Oct 16 23:26:58 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: c7e69808bdb4beb5df2f69b964d448487e775926
      https://github.com/openvswitch/ovs/commit/c7e69808bdb4beb5df2f69b964d448487e775926
  Author: Joe Stringer <joestringer at nicira.com>
  Date:   2015-10-16 (Fri, 16 Oct 2015)

  Changed paths:
    M lib/ofp-actions.h

  Log Message:
  -----------
  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 at nicira.com>
Signed-off-by: Joe Stringer <joestringer at nicira.com>
Acked-by: Pravin B Shelar <pshelar at nicira.com>




More information about the git mailing list