Fix for issue #1608 (runtime build failure with gcc 6.3.1)

Additionally, a warning has been removed.
This commit is contained in:
Mike Lischke 2017-02-22 11:31:57 +01:00
parent 528f675dd6
commit 4a940aeeda
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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]))