Commit 79c5dd6d authored by Rusty Russell's avatar Rusty Russell

ccanlint: show example we actually compiled when we report warnings.

parent 9cca4b73
...@@ -529,7 +529,14 @@ static void build_examples(struct manifest *m, bool keep, ...@@ -529,7 +529,14 @@ static void build_examples(struct manifest *m, bool keep,
warnings = true; warnings = true;
score->error = "Compiling extracted example" score->error = "Compiling extracted example"
" gave warnings"; " gave warnings";
score_file_error(score, file[j], 0, err[j]); error = talloc_asprintf(score,
"Example:\n"
"%s\n"
"Compiler:\n"
"%s",
get_ccan_file_contents(file[j]),
err[j]);
score_file_error(score, file[j], 0, error);
goto next; goto next;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment