[ovs-git] [openvswitch/ovs] cc3ef0: compiler: Use C11 build assertions with new enough...

GitHub noreply at github.com
Fri Mar 17 04:04:13 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: cc3ef008877089e0b93e64437d857ae422313db3
      https://github.com/openvswitch/ovs/commit/cc3ef008877089e0b93e64437d857ae422313db3
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-03-16 (Thu, 16 Mar 2017)

  Changed paths:
    M include/openvswitch/compiler.h

  Log Message:
  -----------
  compiler: Use C11 build assertions with new enough GCC or Clang.

Until now, the BUILD_ASSERT and BUILD_ASSERT_DECL macros have used OVS's
home-grown build assertion strategy.  This commit switches them to using
C11 build assertions with compilers that support them.  The semantics are
the same, but C11 build assertions yield clearer error messages when they
fail.

This commit also reorders the definitions a bit to make it easier to
follow.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Jarno Rajahalme <jarno at ovn.org>




More information about the git mailing list