timer: handle time going backwards.
[ccan] / ccan / tlist / test / compile_fail-tlist_for_each.c
index e2a267b8f3c7392e2a6fb09e54098b1654235273..1b2fb6882fe9594bebd203086719fdaf69720ebe 100644 (file)
@@ -28,6 +28,7 @@ int main(int argc, char *argv[])
        tlist_init(&children);
        tlist_add(&children, &child, list);
 
-       tlist_for_each(&children, c, list);
+       tlist_for_each(&children, c, list)
+               (void) c; /* Suppress unused-but-set-variable warning. */
        return 0;
 }