mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +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:
parent
b620f2f02d
commit
a78659ed05
3 changed files with 3 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue