1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix more GCC 8.1 warnings   1   master 

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));
```
This commit is contained in:
Loïc Blot 2018-05-28 15:39:02 +02:00
parent b620f2f02d
commit a78659ed05
3 changed files with 3 additions and 3 deletions

View file

@ -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;