From 6ab1ab1f120c4441917e334791fd0e171a46e75e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 21 Nov 2020 01:47:45 +0100 Subject: [PATCH] Fix -Wmaybe-uninitialized warnings --- Source/Core/Core/GeckoCode.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/Core/GeckoCode.h b/Source/Core/Core/GeckoCode.h index 254c65b480..9c6c7c7a14 100644 --- a/Source/Core/Core/GeckoCode.h +++ b/Source/Core/Core/GeckoCode.h @@ -16,7 +16,7 @@ namespace Gecko class GeckoCode { public: - GeckoCode() : enabled(false) {} + GeckoCode() = default; struct Code { u32 address = 0; @@ -28,8 +28,8 @@ public: std::string name, creator; std::vector notes; - bool enabled; - bool user_defined; + bool enabled = false; + bool user_defined = false; bool Exist(u32 address, u32 data) const; };