File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class AsmLexer : public MCAsmLexer {
55
55
private:
56
56
bool isAtStartOfComment (const char *Ptr);
57
57
bool isAtStatementSeparator (const char *Ptr);
58
- int getNextChar ();
58
+ [[nodiscard]] int getNextChar ();
59
59
int peekNextChar ();
60
60
AsmToken ReturnError (const char *Loc, const std::string &Msg);
61
61
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ AsmToken AsmLexer::LexSingleQuote() {
578
578
} else if (peekNextChar () == ' \' ' ) {
579
579
// In MASM single-quote strings, doubled single-quotes mean an escaped
580
580
// single quote, so should be lexed in.
581
- getNextChar ();
581
+ ( void ) getNextChar ();
582
582
CurChar = getNextChar ();
583
583
} else {
584
584
break ;
@@ -635,7 +635,7 @@ AsmToken AsmLexer::LexQuote() {
635
635
} else if (peekNextChar () == ' "' ) {
636
636
// In MASM double-quoted strings, doubled double-quotes mean an escaped
637
637
// double quote, so should be lexed in.
638
- getNextChar ();
638
+ ( void ) getNextChar ();
639
639
CurChar = getNextChar ();
640
640
} else {
641
641
break ;
You can’t perform that action at this time.
0 commit comments