From 9c5e2b4f61567387f94acbb1783c21abfd56fa72 Mon Sep 17 00:00:00 2001 From: Vincent JARDIN Date: Sun, 8 Oct 2017 23:25:24 +0200 Subject: [PATCH] isisd: fix clang warning tlvs is not used after extracting the last TLV. So, let's tell to the compiler that it is expected. Signed-off-by: Vincent Jardin --- isisd/isis_te.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isisd/isis_te.c b/isisd/isis_te.c index 70afef1a86..5a4fe82c91 100644 --- a/isisd/isis_te.c +++ b/isisd/isis_te.c @@ -223,6 +223,9 @@ uint8_t add_te_subtlvs(uint8_t *buf, struct mpls_te_circuit *mtc) tlvs += size; } + /* Add before this line any other parsing of TLV */ + (void)tlvs; + /* Update SubTLVs length */ mtc->length = subtlvs_len(mtc); -- 2.39.5