summaryrefslogtreecommitdiffstats
path: root/isisd/isis_te.c
diff options
context:
space:
mode:
authorVincent JARDIN <vincent.jardin@6wind.com>2017-10-08 23:25:24 +0200
committerVincent JARDIN <vincent.jardin@6wind.com>2017-10-08 23:39:21 +0200
commit9c5e2b4f61567387f94acbb1783c21abfd56fa72 (patch)
tree3c5933805b0f6483607048d436a3905ab06bde2c /isisd/isis_te.c
parentospfd: fix clang warning (diff)
downloadfrr-9c5e2b4f61567387f94acbb1783c21abfd56fa72.tar.xz
frr-9c5e2b4f61567387f94acbb1783c21abfd56fa72.zip
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 <vincent.jardin@6wind.com>
Diffstat (limited to '')
-rw-r--r--isisd/isis_te.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/isisd/isis_te.c b/isisd/isis_te.c
index 70afef1a8..5a4fe82c9 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);