mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Suppress warnings about unused variables and functions.
These variables and functions are unused but we don't want to remove their definitions. Found by Clang. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
committed by
Ben Pfaff
parent
6e274d49c4
commit
6a8a8528ac
@@ -884,14 +884,14 @@ ofpacts_from_openflow11(const union ofp_action *in, size_t n_in,
|
||||
/* OpenFlow 1.1 instructions. */
|
||||
|
||||
#define DEFINE_INST(ENUM, STRUCT, EXTENSIBLE, NAME) \
|
||||
static inline const struct STRUCT * \
|
||||
static inline const struct STRUCT * OVS_UNUSED \
|
||||
instruction_get_##ENUM(const struct ofp11_instruction *inst)\
|
||||
{ \
|
||||
ovs_assert(inst->type == htons(ENUM)); \
|
||||
return ALIGNED_CAST(struct STRUCT *, inst); \
|
||||
} \
|
||||
\
|
||||
static inline void \
|
||||
static inline void OVS_UNUSED \
|
||||
instruction_init_##ENUM(struct STRUCT *s) \
|
||||
{ \
|
||||
memset(s, 0, sizeof *s); \
|
||||
@@ -899,7 +899,7 @@ ofpacts_from_openflow11(const union ofp_action *in, size_t n_in,
|
||||
s->len = htons(sizeof *s); \
|
||||
} \
|
||||
\
|
||||
static inline struct STRUCT * \
|
||||
static inline struct STRUCT * OVS_UNUSED \
|
||||
instruction_put_##ENUM(struct ofpbuf *buf) \
|
||||
{ \
|
||||
struct STRUCT *s = ofpbuf_put_uninit(buf, sizeof *s); \
|
||||
|
Reference in New Issue
Block a user