Merge pull request #56483 from vnen/gdscript-warning-annotation

Add annotation to ignore warnings
This commit is contained in:
Rémi Verschelde
2022-01-05 09:05:56 +01:00
committed by GitHub
8 changed files with 117 additions and 29 deletions

View File

@@ -0,0 +1,15 @@
@warning_ignore(unused_private_class_variable)
var _unused = 2
@warning_ignore(unused_variable)
func test():
print("test")
var unused = 3
@warning_ignore(redundant_await)
print(await regular_func())
print("done")
func regular_func():
return 0

View File

@@ -0,0 +1,4 @@
GDTEST_OK
test
0
done