]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/depends_accurate.c
ccanlint: ignore "unused" non-ccan dependencies.
[ccan] / 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]);