summaryrefslogtreecommitdiffstats
path: root/ldpd
diff options
context:
space:
mode:
authorVincent JARDIN <vincent.jardin@6wind.com>2017-10-08 23:28:58 +0200
committerVincent JARDIN <vincent.jardin@6wind.com>2017-10-08 23:39:34 +0200
commite3df3ba6d4ea294920394a7296a852ebc836c48c (patch)
treec6c71802dfcff5fae265760ac0c8440df6e07836 /ldpd
parentisisd: fix clang warning (diff)
downloadfrr-e3df3ba6d4ea294920394a7296a852ebc836c48c.tar.xz
frr-e3df3ba6d4ea294920394a7296a852ebc836c48c.zip
ldpd: fix clang warning
size is not used for further parsing. Keep it updated but tell to the compiler that we know it is not used just in case one needs to extend the parsing somedays. Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/address.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldpd/address.c b/ldpd/address.c
index 12356a0b4..9c1564a31 100644
--- a/ldpd/address.c
+++ b/ldpd/address.c
@@ -88,6 +88,7 @@ send_address(struct nbr *nbr, int af, struct if_addr_head *addr_list,
err |= gen_msg_hdr(buf, msg_type, size);
size -= LDP_MSG_SIZE;
err |= gen_address_list_tlv(buf, af, addr_list, tlv_addr_count);
+ (void)size;
if (err) {
address_list_clr(addr_list);
ibuf_free(buf);