Browse Source

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

Marek Bel 6 years ago
parent
commit
93d2b37b5c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Firmware/ultralcd.cpp

+ 1 - 2
Firmware/ultralcd.cpp

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