[ovs-git] [openvswitch/ovs] 0f395f: type-props: Suppress warnings in newer Clang and G...

GitHub noreply at github.com
Fri Jul 31 01:00:09 UTC 2015


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 0f395fd366413208aac7072ef81b5aeda6a9e307
      https://github.com/openvswitch/ovs/commit/0f395fd366413208aac7072ef81b5aeda6a9e307
  Author: Ben Pfaff <blp at nicira.com>
  Date:   2015-07-30 (Thu, 30 Jul 2015)

  Changed paths:
    M lib/type-props.h
    M tests/test-type-props.c

  Log Message:
  -----------
  type-props: Suppress warnings in newer Clang and GCC.

Until now, Clang 3.7+ and sufficiently new versions of GCC complained about
TYPE_MAXIMUM(int), etc., because it shifts a negative value.  This commit
fixes the problem.

This commit also gives these macros sensible definitions for _Bool, and
documents all of them.

Reported-by: Joe Stringer <joestringer at nicira.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Joe Stringer <joestringer at nicira.com>




More information about the git mailing list