[ovs-git] [openvswitch/ovs] 4d7729: lacp: fix build failure with inline declaration

GitHub noreply at github.com
Tue Jan 31 18:22:46 UTC 2017


  Branch: refs/heads/branch-2.3
  Home:   https://github.com/openvswitch/ovs
  Commit: 4d7729b1ad4620dab38f0075c34ade4cbe1788f2
      https://github.com/openvswitch/ovs/commit/4d7729b1ad4620dab38f0075c34ade4cbe1788f2
  Author: Shu Shen <shu.shen at gmail.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M lib/lacp.c

  Log Message:
  -----------
  lacp: fix build failure with inline declaration

Previous commit 336a5584 has a variable declared inline, while
-Wdeclaration-after-statement flag is enabled on this branch. This
causes build failure:

   lib/lacp.c:620:9: error: mixing declarations and code

The declaration of the variable "enable" has been moved in this change
to comply with the expected behavior.

Signed-off-by: Shu Shen <shu.shen at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list