summaryrefslogtreecommitdiff
path: root/src/client/gameui.cpp
diff options
context:
space:
mode:
authorLoïc Blot <loic.blot@unix-experience.fr>2018-05-28 15:39:02 +0200
committerLoïc Blot <loic.blot@unix-experience.fr>2018-05-28 15:39:04 +0200
commita78659ed0529226ad937f5e241ad72ba93702959 (patch)
tree2b214eee758b2b14383fb894774d8d9e2ce2d104 /src/client/gameui.cpp
parentb620f2f02db4755f988f24522f4d77d890f6421d (diff)
downloadminetest-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/client/gameui.cpp')
-rw-r--r--src/client/gameui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/gameui.cpp b/src/client/gameui.cpp
index 142d30922..7e0a7ef67 100644
--- a/src/client/gameui.cpp
+++ b/src/client/gameui.cpp
@@ -188,7 +188,7 @@ void GameUI::update(const RunStats &stats, Client *client, MapDrawControl *draw_
void GameUI::initFlags()
{
- memset(&m_flags, 0, sizeof(GameUI::Flags));
+ m_flags = GameUI::Flags();
m_flags.show_chat = true;
m_flags.show_hud = true;
m_flags.show_debug = g_settings->getBool("show_debug");