From: Vincent Bernat Date: Fri, 4 May 2012 16:35:32 +0000 (+0200) Subject: client: fix unused variable when LLDPMED support is not compiled X-Git-Tag: 0.6.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2a836f02ede4ea966fe1cc714aea47bdacd41270;p=thirdparty%2Flldpd.git client: fix unused variable when LLDPMED support is not compiled --- diff --git a/src/client.c b/src/client.c index eab132e3..9b602e63 100644 --- a/src/client.c +++ b/src/client.c @@ -113,7 +113,9 @@ client_handle_set_port(struct lldpd *cfg, enum hmsg_type *type, int ret = 0; struct lldpd_port_set *set = NULL; struct lldpd_hardware *hardware = NULL; +#ifdef ENABLE_LLDPMED struct lldpd_med_loc *loc = NULL; +#endif if (marshal_unserialize(lldpd_port_set, input, input_len, &set) <= 0) { *type = NONE;