GDScript: Add @warning_ignore_start and @warning_ignore_restore annotations

This commit is contained in:
Danil Alexeev
2024-12-06 10:25:59 +03:00
parent eb5103093c
commit 7d65d0a908
22 changed files with 221 additions and 89 deletions

View File

@@ -0,0 +1,5 @@
@warning_ignore_start("unreachable_code")
@warning_ignore_start("unreachable_code")
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Warning "UNREACHABLE_CODE" is already being ignored by "@warning_ignore_start" at line 1.

View File

@@ -0,0 +1,4 @@
@warning_ignore_restore("unreachable_code")
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Warning "UNREACHABLE_CODE" is not being ignored by "@warning_ignore_start".