Skip to content

Commit

Permalink
Merge pull request #47863 from mphe/same_line_warning_ignore
Browse files Browse the repository at this point in the history
Allow warning-ignore in the same line as the respective warning
  • Loading branch information
akien-mga authored May 18, 2021
2 parents 72647cc + 3715ea2 commit 6355877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8755,7 +8755,7 @@ Error GDScriptParser::_parse(const String &p_base_path) {
GDScriptWarning &w = E->get();
int skip_index = -1;
for (int i = 0; i < warning_skips.size(); i++) {
if (warning_skips[i].first >= w.line) {
if (warning_skips[i].first > w.line) {
break;
}
skip_index = i;
Expand Down

0 comments on commit 6355877

Please sign in to comment.