]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: fix clang warning
authorVincent JARDIN <vincent.jardin@6wind.com>
Sun, 8 Oct 2017 21:37:04 +0000 (23:37 +0200)
committerVincent JARDIN <vincent.jardin@6wind.com>
Sun, 8 Oct 2017 21:39:34 +0000 (23:39 +0200)
us is clearly not used, but let's keep it to have a readable logic.

Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
ospfd/ospf_dump.c

index eca0f85f57ba7df2a5bfe731ef5f63f16a0af6b2..5933f5abfe06e47cfd0dd59d429bccf2ffac9fb7 100644 (file)
@@ -169,6 +169,7 @@ const char *ospf_timeval_dump(struct timeval *t, char *buf, size_t size)
        if (us >= 1000) {
                ms = us / 1000;
                us %= 1000;
+               (void)us; /* unused */
        }
 
        if (ms >= 1000) {