From: Roy Marples Date: Tue, 11 Nov 2014 11:26:32 +0000 (+0000) Subject: Stop clang complaing about a more complex variant on a long standing TAILQ bug. X-Git-Tag: v6.6.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa4a735d496c3bd58d642c5c4bb5190aa0d63e2f;p=thirdparty%2Fdhcpcd.git Stop clang complaing about a more complex variant on a long standing TAILQ bug. --- diff --git a/arp.c b/arp.c index 49d6282e..4893fd25 100644 --- a/arp.c +++ b/arp.c @@ -354,6 +354,10 @@ arp_close(struct interface *ifp) } while ((astate = TAILQ_FIRST(&state->arp_states))) { +#ifndef __clang_analyzer__ + /* clang guard needed for a more compex variant on this bug: + * http://llvm.org/bugs/show_bug.cgi?id=18222 */ arp_free(astate); +#endif } }