mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Disable GDScript warning for unused class variable by default
This commit is contained in:
		
							parent
							
								
									cd9d513285
								
							
						
					
					
						commit
						cbf5641a74
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -2143,7 +2143,8 @@ GDScriptLanguage::GDScriptLanguage() { | |||
| 	GLOBAL_DEF("debug/gdscript/completion/autocomplete_setters_and_getters", false); | ||||
| 	for (int i = 0; i < (int)GDScriptWarning::WARNING_MAX; i++) { | ||||
| 		String warning = GDScriptWarning::get_name_from_code((GDScriptWarning::Code)i).to_lower(); | ||||
| 		GLOBAL_DEF("debug/gdscript/warnings/" + warning, !warning.begins_with("unsafe_")); | ||||
| 		bool default_enabled = !warning.begins_with("unsafe_") && i != GDScriptWarning::UNUSED_CLASS_VARIABLE; | ||||
| 		GLOBAL_DEF("debug/gdscript/warnings/" + warning, default_enabled); | ||||
| 	} | ||||
| #endif // DEBUG_ENABLED
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 George Marques
						George Marques