From 84c55b25a997737b2faf7a9637d0bf697105825b Mon Sep 17 00:00:00 2001 From: Ronald Caesar Date: Sun, 10 Aug 2025 02:01:29 -0400 Subject: [PATCH] gui: initialize structs to default value Signed-off-by: Ronald Caesar --- core/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/main.cpp b/core/main.cpp index afc3dce..fc2bd02 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -4,7 +4,6 @@ #include #include -#include "ARM/cpu.h" #include "Base/Config.h" #include "Base/Logging/Backend.h" #include "JIT/jit.h" @@ -41,7 +40,7 @@ int main() const size_t panels_capacity = 2; const char* panel_names[panels_capacity] = {PANEL_NAME_CPU, PANEL_NAME_PERFORMANCE}; - bool panels_visibility[panels_capacity] = {false}; + bool panels_visibility[panels_capacity] = {}; bool imgui_demo_visible = false; gui::gui_t gui = { @@ -60,7 +59,7 @@ int main() bool show_cpu_result_popup = false; while (true == is_running) { - SDL_Event event; + SDL_Event event = {}; while (::SDL_PollEvent(&event)) { (void)::ImGui_ImplSDL3_ProcessEvent(&event);