From a78659ed0529226ad937f5e241ad72ba93702959 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Mon, 28 May 2018 15:39:02 +0200 Subject: Fix more GCC 8.1 warnings   1   master  MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix 3 warnings reported by GCC 8.1 of the following type ```src/client/gameui.cpp:191:43: warning: « void* memset(void*, int, size_t) » effacement d'un objet du type non trivial « struct GameUI::Flags »; use assignment or value-initialization instead [-Wclass-memaccess] memset(&m_flags, 0, sizeof(GameUI::Flags)); ``` --- src/gui/guiTable.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/gui') diff --git a/src/gui/guiTable.cpp b/src/gui/guiTable.cpp index a2738afa9..501b425f8 100644 --- a/src/gui/guiTable.cpp +++ b/src/gui/guiTable.cpp @@ -334,7 +334,6 @@ void GUITable::setTable(const TableOptions &options, // Make template for new cells Cell newcell; - memset(&newcell, 0, sizeof newcell); newcell.content_type = columntype; newcell.tooltip_index = tooltip_index; newcell.reported_column = j+1; -- cgit v1.2.3