Skip to content

Commit

Permalink
types: Fix defined but not used warning.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
williamtu authored and blp committed Feb 19, 2016
1 parent 2d5c1a2 commit 3614933
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/openvswitch/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <sys/types.h>
#include <stdint.h>
#include "openvswitch/compiler.h"

#ifdef __CHECKER__
#define OVS_BITWISE __attribute__((bitwise))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3614933

Please sign in to comment.