I've just made a major leap in versions of the ESP32 libraries. And Arduino IDE (1.8.19) Raspberry Pi 64 bit Bullseye distro.
I linked my code to a library. In that library there was a function that was declared as returning a value.
However, there was a path in the code where a value was not returned.
My code (on a Firebeetle ESP32) kept crashing and it was for seemingly different reasons each time. Extremely hard to pin down.
It would seem that the compiler now does something very different in these circumstances.
If I turn on all warnings, I just get a warning for "no return value". NOT an error.
I dread to think how many other bits of code I mess with have this problem.
It has been discussed here. but I don't see any resolution.
https://github.com/espressif/arduino-esp32/issues/5867
Just posted here in case someone else is wondering why their code is crashing inexplicably.
Make sure all functions declared as non void return a value!
Moved from 1.0.5 rc6 to 2.0.11 and encountered a compiler 'issue' with no return value
Who is online
Users browsing this forum: Basalt and 58 guests