Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix three warnings (Wunused-parameter, Wsign-compare, Wdeprecated-declarations) and a typo. #4488

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

rturrado
Copy link

@rturrado rturrado commented Dec 11, 2023

I've just commented out the unused parameter as I've seen you do in other parts of the code, with /*variableName*/.

UnbufferedCharStream.cpp: fixed warning: comparison of integers of different signs: 'value_type' (aka 'char32_t') and 'int_type' (aka 'int') [-Wsign-compare].
Vocabulary.cpp: fixed  warning: ‘antlr4::dfa::Vocabulary::EMPTY_VOCABULARY’ is deprecated: Use the default constructor of Vocabulary instead. [-Wdeprecated-declarations].

Signed-off-by: rturrado <[email protected]>
@rturrado rturrado changed the title Fix warning: unused parameter 'context' [-Wunused-parameter]. Fix three warnings (Wunused-parameter, Wsign-compare, Wdeprecated-declarations) and a typo. Dec 11, 2023
@@ -155,7 +155,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) {
Copy link

@jmairboeck jmairboeck Jul 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is generated. I added a comment to #4171 (which is about a similar issue) to fix the generator template instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants