error: no return statement in function returning non-void [-Werror=return-type]
ev-olution opened this issue · comments
Hi. I am getting few errors when trying to compile your code. Errors:
_1: ESP32-Dashcam:412: error: no return statement in function returning non-void [-Werror=return-type]
} // end of start avi
^
2: ESP32-Dashcam:514: error: no return statement in function returning non-void [-Werror=return-type]
} // end of another_pic_avi
^
3: ESP32-Dashcam:594: error: no return statement in function returning non-void [-Werror=return-type]
}
^
4: C:\Users\Administrator\Documents\ESP32-Dashcam-master\ESP32-Dashcam\ESP32-Dashcam.ino: In function 'void setup()':
ESP32-Dashcam:814: error: format '%s' expects argument of type 'char*', but argument 3 has type 'String*' [-Werror=format=]
Serial.printf("Creating dir: '%s' as current path... ", curr_path);
^
exit status 1
no return statement in function returning non-void [-Werror=return-type]_
Sorry, just now seen that someone else had this issue and that you suggested the following: "To compile set in Arduino IDE "File -> Preferences -> Compile warnings" to "default" ". I tried this and all errors are gone now. Thanks for this project.