type-props: Suppress warnings in newer Clang and GCC.
authorBen Pfaff <blp@nicira.com>
Fri, 31 Jul 2015 00:44:26 +0000 (17:44 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 31 Jul 2015 01:00:50 +0000 (18:00 -0700)
commit2a9e1779535bc8f3e915a50bfba0c2dec8b11b3b
tree2529c4370fed8e8bf0354b7b0c9c79cc96dac438
parente9155f36db6fe8f23dfd06ac7feaf279f0c1b95c
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@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Joe Stringer <joestringer@nicira.com>
lib/type-props.h
tests/test-type-props.c