浏览代码

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

Marek Bel 6 年之前
父节点
当前提交
93d2b37b5c
共有 1 个文件被更改,包括 1 次插入2 次删除
  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;