From 1083ff65777867620f28b519bce4ab0d2edda7f1 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Sun, 18 Aug 2019 02:12:15 +0100 Subject: KYRA: LOL: Fix GCC Compiler Warning from memset Usage The memset call to clear the Common::Event is unecessary as all fields are cleared either directly by the class constructor or for fields which are struct/class objects, by their constructors. --- engines/kyra/gui/gui_lol.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'engines') diff --git a/engines/kyra/gui/gui_lol.cpp b/engines/kyra/gui/gui_lol.cpp index 0c21227b19..293d507e5f 100644 --- a/engines/kyra/gui/gui_lol.cpp +++ b/engines/kyra/gui/gui_lol.cpp @@ -798,7 +798,6 @@ void LoLEngine::gui_updateInput() { void LoLEngine::gui_triggerEvent(int eventType) { Common::Event evt; - memset(&evt, 0, sizeof(Common::Event)); evt.mouse.x = _mouseX; evt.mouse.y = _mouseY; -- cgit v1.2.3