Commit 2cae94de authored by Rusty Russell's avatar Rusty Russell

configurator: warnings count as failures too.

Unfortunately, gcc only warns if it sees an unknown attribute (in this case, gcc 4.1 vs "cold").
parent c102d5ec
......@@ -267,9 +267,10 @@ static bool run_test(const char *cmd, struct test *test)
if (system("cat " INPUT_FILE) == -1);
output = run(cmd, &status);
if (status != 0) {
if (status != 0 || strstr(output, "warning")) {
if (verbose)
printf("Compile fail for %s, status %i: %s\n",
printf("Compile %s for %s, status %i: %s\n",
status ? "fail" : "warning",
test->name, status, output);
if (test->style == EXECUTE)
errx(1, "Test for %s did not compile:\n%s",
......
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