From: Vincent JARDIN Date: Sun, 8 Oct 2017 21:37:04 +0000 (+0200) Subject: ospfd: fix clang warning X-Git-Tag: frr-4.0-dev~233^2~10 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=f38b7f6dd391aefbf87b9448f97da6949ecbfb90;p=matthieu%2Ffrr.git ospfd: fix clang warning us is clearly not used, but let's keep it to have a readable logic. Signed-off-by: Vincent Jardin --- diff --git a/ospfd/ospf_dump.c b/ospfd/ospf_dump.c index eca0f85f57..5933f5abfe 100644 --- a/ospfd/ospf_dump.c +++ b/ospfd/ospf_dump.c @@ -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) {