ソースを参照

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;