From a8a0e5fa9171e382e6fae117e11e0cf60f104a47 Mon Sep 17 00:00:00 2001 From: krcroft Date: Tue, 31 Mar 2020 17:55:57 -0700 Subject: [PATCH] Cleanup PVS warning about uninitialized members --- src/gui/sdlmain.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index ab88feaf..ecb085df 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -252,17 +252,18 @@ struct SDL_Block { bool wait_on_error; struct { struct { - Bit16u width, height; - bool fixed; - bool display_res; + Bit16u width = 0; + Bit16u height = 0; + bool fixed = false; + bool display_res = false; } full; struct { uint16_t width = 0; // TODO convert to int uint16_t height = 0; // TODO convert to int bool use_original_size = true; } window; - Bit8u bpp; - bool fullscreen; + Bit8u bpp = 0; + bool fullscreen = false; bool vsync = false; SCREEN_TYPES type; SCREEN_TYPES want_type;