mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Changed 'unreferenced rule' not to be reported as error, but warning
This commit is contained in:
parent
e26a9e88f5
commit
9660853a68
File diff suppressed because one or more lines are too long
BIN
docs/native.wasm
BIN
docs/native.wasm
Binary file not shown.
1
peglib.h
1
peglib.h
@ -3677,7 +3677,6 @@ private:
|
|||||||
auto msg = "'" + name + "' is not referenced.";
|
auto msg = "'" + name + "' is not referenced.";
|
||||||
log(line.first, line.second, msg);
|
log(line.first, line.second, msg);
|
||||||
}
|
}
|
||||||
ret = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1112,7 +1112,7 @@ TEST_CASE("Unreferenced rule", "[macro]") {
|
|||||||
)");
|
)");
|
||||||
|
|
||||||
bool ret = parser;
|
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]") {
|
TEST_CASE("Nested macro call", "[macro]") {
|
||||||
|
Loading…
Reference in New Issue
Block a user