]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/tests/examples_compile.c
ccanlint: make tests non-compulsory, always print score.
[ccan] / tools / ccanlint / tests / examples_compile.c
index 82b479620c614ba6c1e7d995003b60bdd96a0864..e66379f5e7fee45e9036a5cda09f664dac568b09 100644 (file)
@@ -506,6 +506,11 @@ static void *build_examples(struct manifest *m, bool keep,
                /* This didn't work, so not a candidate for combining. */
                prev = NULL;
        }
+
+       if (strcmp(score->errors, "") == 0) {
+               talloc_free(score);
+               return NULL;
+       }
        return score;
 }