diff options
author | Loïc Blot <loic.blot@unix-experience.fr> | 2018-05-28 15:39:02 +0200 |
---|---|---|
committer | Loïc Blot <loic.blot@unix-experience.fr> | 2018-05-28 15:39:04 +0200 |
commit | a78659ed0529226ad937f5e241ad72ba93702959 (patch) | |
tree | 2b214eee758b2b14383fb894774d8d9e2ce2d104 /src/gui | |
parent | b620f2f02db4755f988f24522f4d77d890f6421d (diff) | |
download | minetest-a78659ed0529226ad937f5e241ad72ba93702959.tar.gz minetest-a78659ed0529226ad937f5e241ad72ba93702959.tar.bz2 minetest-a78659ed0529226ad937f5e241ad72ba93702959.zip |
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));
```
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/guiTable.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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; |