neu-rah / ArduinoMenu

Arduino generic menu/interactivity system
GNU Lesser General Public License v2.1
951 stars 191 forks source link

dereferencing type-punned pointer will break strict-aliasing rules #326

Open GoDotMad opened 4 years ago

GoDotMad commented 4 years ago

platformio compiler complains when defining a menu using macros for the reasons explained here:

https://stackoverflow.com/questions/8824622/fix-for-dereferencing-type-punned-pointer-will-break-strict-aliasing

I tried locking in the source code of the library but I couldn't find the source for the id attribute of the macro