]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: fix clang warning
authorVincent JARDIN <vincent.jardin@6wind.com>
Sun, 8 Oct 2017 21:25:24 +0000 (23:25 +0200)
committerVincent JARDIN <vincent.jardin@6wind.com>
Sun, 8 Oct 2017 21:39:21 +0000 (23:39 +0200)
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>
isisd/isis_te.c

index 70afef1a86ee4fe81a4b8ff14f82c4444fd48669..5a4fe82c914bae8c75f6b20bf3437b97b4c72db1 100644 (file)
@@ -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);