Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: control reaches end of non-void function [-Werror=return-type] #15

Open
dkerr64 opened this issue Jan 6, 2024 · 0 comments
Open

Comments

@dkerr64
Copy link

dkerr64 commented Jan 6, 2024

Got the subject error message compiling in platformio IDE...

.pio/libdeps/ratgdo_esp8266_hV25/ESP OTA GitHub/src/ESP_OTA_GitHub.cpp: In member function 'bool ESPOTAGitHub::doUpgrade()':
.pio/libdeps/ratgdo_esp8266_hV25/ESP OTA GitHub/src/ESP_OTA_GitHub.cpp:237:52: error: control reaches end of non-void function [-Werror=return-type]
  237 |     urlDetails_t splitURL = _urlDetails(_upgradeURL);
      |                                                    ^
Compiling .pio/build/ratgdo_esp8266_hV25/FrameworkArduino/LwipIntfCB.cpp.o
cc1plus: some warnings being treated as errors
*** [.pio/build/ratgdo_esp8266_hV25/libf10/ESP OTA GitHub/ESP_OTA_GitHub.cpp.o] Error 1

Compile error is fixed by adding
return false;
to the end of the soUpgrade() function. I'm assuming that false is the right default return value... I have not got as far as testing the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant