]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Stop clang complaing about a more complex variant on a long standing TAILQ bug.
authorRoy Marples <roy@marples.name>
Tue, 11 Nov 2014 11:26:32 +0000 (11:26 +0000)
committerRoy Marples <roy@marples.name>
Tue, 11 Nov 2014 11:26:32 +0000 (11:26 +0000)
arp.c

diff --git a/arp.c b/arp.c
index 49d6282e0dc4328adb051dd8011baa738e3a5b94..4893fd25ce42354e555f13ceb0e001d5912f994b 100644 (file)
--- 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
        }
 }