Changed 'unreferenced rule' not to be reported as error, but warning

This commit is contained in:
yhirose 2021-03-05 16:52:15 -05:00
parent e26a9e88f5
commit 9660853a68
4 changed files with 2 additions and 3 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -3677,7 +3677,6 @@ private:
auto msg = "'" + name + "' is not referenced.";
log(line.first, line.second, msg);
}
ret = false;
}
}

View File

@ -1112,7 +1112,7 @@ TEST_CASE("Unreferenced rule", "[macro]") {
)");
bool ret = parser;
REQUIRE(ret == false);
REQUIRE(ret == true); // This is OK, because it's a warning, not an erro...
}
TEST_CASE("Nested macro call", "[macro]") {