Fix 98 compiler warnings of type: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

This commit is contained in:
Marek Bel 2018-08-01 22:43:27 +02:00
parent 5ddf1fce62
commit 93d2b37b5c

View File

@ -130,8 +130,7 @@ union MenuData
// State of the currently active menu.
// C Union manages sharing of the static memory by all the menus.
//union MenuData menuData = { 0 };
#define menuData (*((MenuData*)menu_data))
union MenuData menuData = { 0 };
int8_t ReInitLCD = 0;