From c4404e2918d026773c56a65996ca66c6cb5fb115 Mon Sep 17 00:00:00 2001 From: Georg Ziegler Date: Sun, 19 Jun 2022 14:52:04 +0200 Subject: [PATCH] Move definition of const int ERROR_CODE to be reachable by all functions. --- editor/project_converter_3_to_4.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/project_converter_3_to_4.cpp b/editor/project_converter_3_to_4.cpp index 515d09c3fc4..dfe40f9d4f8 100644 --- a/editor/project_converter_3_to_4.cpp +++ b/editor/project_converter_3_to_4.cpp @@ -32,14 +32,16 @@ #include "modules/modules_enabled.gen.h" +const int ERROR_CODE = 77; + #ifdef MODULE_REGEX_ENABLED + #include "modules/regex/regex.h" #include "core/os/time.h" #include "core/templates/hash_map.h" #include "core/templates/list.h" -const int ERROR_CODE = 77; const int CONVERSION_MAX_FILE_SIZE = 1024 * 1024 * 4; // 4 MB static const char *enum_renames[][2] = {