From 8d1889c116c2c1ddf148751f74a67e8cce7947ac Mon Sep 17 00:00:00 2001 From: Ilari Liusvaara Date: Mon, 15 Feb 2021 23:16:40 +0200 Subject: [PATCH] Revert initializing globalwrap state Leave globalwrap state as uninitialized, even if that causes a compile warning as initializing breaks AVI dumping on Windows. All globalwraps should have static storage duration anyway, and C++ can not have uninitialized variables with static storage duration. --- include/library/globalwrap.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/library/globalwrap.hpp b/include/library/globalwrap.hpp index 11ab10aa..e0f05431 100644 --- a/include/library/globalwrap.hpp +++ b/include/library/globalwrap.hpp @@ -15,8 +15,6 @@ public: */ globalwrap() { - storage = NULL; - state = 0; (*this)(); } /**