summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-10-03 14:05:17 +0200
committerRémi Verschelde <rverschelde@gmail.com>2018-10-03 14:13:42 +0200
commit6ab78d9ffbf0041a8b64a017a7586cbc3244ed46 (patch)
tree726256d8fe99b8272292ffafe203964fc697dd9d /main
parent723e2e9654615fcfd858786d687d22b9fdfc1fd6 (diff)
Fix some more warnings reported by CI
Fixes the following Clang 7 warnings: ``` core/io/marshalls.cpp:872:10: warning: unused variable 'f' [-Wunused-variable] core/ustring.cpp:1831:2: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] core/ustring.cpp:1832:2: warning: 'register' storage class specifier is deprecated and incompatible with C++17 [-Wdeprecated-register] drivers/gles3/rasterizer_gles3.cpp:82:24: warning: unused function '_gl_debug_print' [-Wunused-function,34] main/main.cpp:118:13: warning: unused variable 'auto_build_solutions' [-Wunused-variable] modules/csg/csg_gizmos.cpp:225:46: warning: 'current' may be used uninitialized in this function [-Wmaybe-uninitialized] ```
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp
index c50d684f4a..41ae368087 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -115,9 +115,11 @@ static bool editor = false;
static bool project_manager = false;
static String locale;
static bool show_help = false;
-static bool auto_build_solutions = false;
static bool auto_quit = false;
static OS::ProcessID allow_focus_steal_pid = 0;
+#ifdef TOOLS_ENABLED
+static bool auto_build_solutions = false;
+#endif
// Display