From: Jarno Rajahalme Date: Thu, 26 Sep 2013 17:54:59 +0000 (-0700) Subject: Suppress warnings about unused variables and functions. X-Git-Tag: sliver-openvswitch-2.0.90-1~11^2~24 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6a8a8528acb05d6d0a520e09ad1ec67e62b99e5e;p=sliver-openvswitch.git 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 Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index dcc82dbe9..65430f315 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp-actions.c @@ -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); \ diff --git a/lib/vlandev.c b/lib/vlandev.c index 282d28ca3..6531bf0cf 100644 --- a/lib/vlandev.c +++ b/lib/vlandev.c @@ -303,7 +303,7 @@ vlandev_stub_del(const char *vlan_dev OVS_UNUSED) return EOPNOTSUPP; } -static const struct vlandev_class vlandev_stub_class = { +static const struct vlandev_class OVS_UNUSED vlandev_stub_class = { NULL, /* vd_refresh */ vlandev_stub_add, vlandev_stub_del