From aaf1b4c668a56be199d32e6b4a9d52e9af981d96 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Sun, 8 Sep 2019 19:27:29 +0300 Subject: [PATCH] Fix gcc warning in bit_cast --- Utilities/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Utilities/types.h b/Utilities/types.h index 11cd8f7511..0b87dea161 100644 --- a/Utilities/types.h +++ b/Utilities/types.h @@ -96,7 +96,7 @@ namespace std { static_assert(sizeof(To) == sizeof(From), "std::bit_cast<>: incompatible type size"); - To result; + To result{}; std::memcpy(&result, &from, sizeof(From)); return result; }