eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
616 stars 101 forks source link

Compiling under Keil gives a warning and doesn't work. #520

Open GPTKEY opened 2 months ago

GPTKEY commented 2 months ago

Describe the bug Once the flow function is used, programs compiled in Keil do not run, presumably due to floating-point related issues.

To Reproduce Steps to reproduce the behavior: Design a simple interface that compiles the programme to run Add a flow function to the interface and switch pages The programme doesn't work at all

Expected behavior

Screenshots

Desktop (please complete the following information):

LVGL version (if used)

Additional context Keil Build Err E:\Keil_v5\ARM\ARMCLANG\include\math.h(272): note: expanded from macro 'NAN' 272 | # define NAN builtin_nanf("") | ^~~~~~ G:\Test\H7R_Series\LTDC_ColorKeying0829LVGL\LVGLPRJ-RTOS-EEZ\UI\LVGL\ui\eez-flow.cpp(2479): warning: use of NaN via a macro is undefined behavior due to the currently enabled floating-point options [-Wnan-infinity-disabled] 2479 | return NAN; | ^ G:\Test\H7R_Series\LTDC_ColorKeying0829LVGL\LVGLPRJ-RTOS-EEZ\UI\LVGL\ui\eez-flow.cpp(2479): warning: use of NaN is undefined behavior due to the currently enabled floating-point options [-Wnan-infinity-disabled] 2479 | return NAN; | ^~~ E:\Keil_v5\ARM\ARMCLANG\include\math.h(272): note: expanded from macro 'NAN' 272 | # define NAN builtin_nanf("")