int initFunc() {
}
void setup() {
Serial.begin(19200);
initFunc();
}
void loop() {
}
So initFunc should return an int but doesn't, but setup ignores the return value. In C, this would generate a
warning: control reaches end of non-void function [-Wreturn-type]
but runs fine.
On Arduino/ESP8266 it compiles fine, but then triggers an exception, which seems extreme. Is there a logic to this that I'm missing, or is it a bug?
Using board 3.0.2 and Arduino 1.8.13