Interesting. For me, a function with return type int, and no return statement:
- Compiles with a warning when building for Arduino Uno R3
- Fails to compile when building for ESP32 Dev board
I'm using Arduino IDE 1.8.13. I've not tried running the code on either board.