]> git.ozlabs.org Git - ccan/commitdiff
ccanlint: ignore "unused" non-ccan dependencies.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 3 Jan 2013 01:06:48 +0000 (11:36 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 3 Jan 2013 01:06:48 +0000 (11:36 +1030)
We can't really tell if non-ccan dependencies are used, so don't try.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/ccanlint/tests/depends_accurate.c

index e2e8e8712a61876ecd74a77cc107165ce0578bf2..d7082fac296c68730383542dce0a82085aee03a3 100644 (file)
@@ -98,7 +98,7 @@ static void check_depends_accurate(struct manifest *m,
        }
 
        for (i = 0; i < core_deps; i++) {
-               if (!used[i])
+               if (!used[i] && strstarts(deps[i], "ccan/"))
                        score_file_error(score, m->info_file, 0,
                                         "%s is an unused dependency",
                                         deps[i]);