studio icon indicating copy to clipboard operation
studio copied to clipboard

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

Open GPTKEY opened this issue 1 year ago • 0 comments

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):

  • OS: [e.g. Windows] -EEZ Version [ 0.16.1]

** LVGL version (if used)**

  • 8.x

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("")

GPTKEY avatar Sep 05 '24 09:09 GPTKEY