From 0103af1ddda6a2aa31227965141dd7d3a513e081 Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Thu, 29 Sep 2022 12:53:28 +0300 Subject: Fix MSVC warnings, rename shadowed variables, fix uninitialized values, change warnings=all to use /W4. --- modules/gdscript/editor/gdscript_highlighter.cpp | 12 +- modules/gdscript/gdscript.cpp | 134 ++++++++++----------- modules/gdscript/gdscript.h | 2 +- modules/gdscript/gdscript_analyzer.cpp | 30 ++--- modules/gdscript/gdscript_compiler.cpp | 104 ++++++++-------- modules/gdscript/gdscript_compiler.h | 8 +- modules/gdscript/gdscript_disassembler.cpp | 4 +- modules/gdscript/gdscript_editor.cpp | 28 ++--- modules/gdscript/gdscript_function.cpp | 10 +- modules/gdscript/gdscript_parser.cpp | 22 ++-- modules/gdscript/gdscript_parser.h | 20 +-- modules/gdscript/gdscript_tokenizer.cpp | 18 +-- modules/gdscript/gdscript_vm.cpp | 2 +- .../language_server/gdscript_extend_parser.cpp | 42 +++---- .../language_server/gdscript_language_server.cpp | 12 +- .../language_server/gdscript_text_document.cpp | 22 ++-- .../language_server/gdscript_workspace.cpp | 36 +++--- 17 files changed, 249 insertions(+), 257 deletions(-) (limited to 'modules/gdscript') diff --git a/modules/gdscript/editor/gdscript_highlighter.cpp b/modules/gdscript/editor/gdscript_highlighter.cpp index 8b27307d0c..8645aa6f15 100644 --- a/modules/gdscript/editor/gdscript_highlighter.cpp +++ b/modules/gdscript/editor/gdscript_highlighter.cpp @@ -653,23 +653,23 @@ void GDScriptSyntaxHighlighter::_update_cache() { add_color_region(beg, end, string_color, end.is_empty()); } - const Ref