diff options
author | William Tu <u9012063@gmail.com> | 2016-02-19 13:35:55 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2016-02-19 14:53:55 -0800 |
commit | 361493368266a6586b4183e2f9b385992bfa3d6d (patch) | |
tree | 2a74423f9b3e3b3066704c6ce4dd0d71cccf5268 /include | |
parent | 2d5c1a20d8ba1e9001bb3c185dae143c32b4c516 (diff) | |
download | openvswitch-361493368266a6586b4183e2f9b385992bfa3d6d.tar.gz |
types: Fix defined but not used warning.
warning: ‘OVS_BE128_MAX’ defined but not used [-Wunused-const-variable]
Found using CentOS 6.6 with gcc 6.0.0.
Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openvswitch/types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openvswitch/types.h b/include/openvswitch/types.h index 658fb50b0..5f3347d5e 100644 --- a/include/openvswitch/types.h +++ b/include/openvswitch/types.h @@ -19,6 +19,7 @@ #include <sys/types.h> #include <stdint.h> +#include "openvswitch/compiler.h" #ifdef __CHECKER__ #define OVS_BITWISE __attribute__((bitwise)) @@ -104,7 +105,7 @@ typedef union { * So we use these static definitions rather than using initializer macros. */ static const ovs_u128 OVS_U128_MAX = { { UINT32_MAX, UINT32_MAX, UINT32_MAX, UINT32_MAX } }; -static const ovs_be128 OVS_BE128_MAX = { { OVS_BE32_MAX, OVS_BE32_MAX, +static const ovs_be128 OVS_BE128_MAX OVS_UNUSED = { { OVS_BE32_MAX, OVS_BE32_MAX, OVS_BE32_MAX, OVS_BE32_MAX } }; /* A 64-bit value, in network byte order, that is only aligned on a 32-bit |