forked from jasder/antlr
Fix for issue #1608 (runtime build failure with gcc 6.3.1)
Additionally, a warning has been removed.
This commit is contained in:
parent
528f675dd6
commit
4a940aeeda
|
@ -100,7 +100,7 @@ ParseTreePattern ParseTreePatternMatcher::compile(const std::string &pattern, in
|
|||
throw e;
|
||||
#else
|
||||
} catch (std::exception & /*e*/) {
|
||||
std::throw_with_nested("Cannot invoke start rule"); // Wrap any other exception. We should however probably use one of the ANTLR exceptions here.
|
||||
std::throw_with_nested((const char*)"Cannot invoke start rule"); // Wrap any other exception. We should however probably use one of the ANTLR exceptions here.
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ void XPathLexer::action(RuleContext *context, size_t ruleIndex, size_t actionInd
|
|||
}
|
||||
}
|
||||
|
||||
void XPathLexer::IDAction(antlr4::RuleContext *context, size_t actionIndex) {
|
||||
void XPathLexer::IDAction(antlr4::RuleContext * /*context*/, size_t actionIndex) {
|
||||
switch (actionIndex) {
|
||||
case 0:
|
||||
if (isupper(getText()[0]))
|
||||
|
|
Loading…
Reference in New Issue