Skip to content

Fix compilation error in MetOfficeClient.cpp #199

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

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

vlastahajek
Copy link
Contributor

@vlastahajek vlastahajek commented Jul 27, 2021

Maybe fixes issue #198.

With compiler option -Werror=return-type:

C:\Users\vlast\OneDrive\Dokumenty\Arduino\libraries\esp8266-weather-station\src\MetOfficeClient.cpp: In member function 'String MetOfficeClient::getWeatherIconName(String)':
C:\Users\vlast\OneDrive\Dokumenty\Arduino\libraries\esp8266-weather-station\src\MetOfficeClient.cpp:463:1: error: control reaches end of non-void function [-Werror=return-type]
463 | }

@marcelstoer
Copy link
Member

marcelstoer commented Jul 27, 2021

To make sure we catch similar issues before the code is released, that compiler switch should be enabled for CI builds?

@marcelstoer marcelstoer changed the title fix: compilation error in MetOfficeClient.cpp Fix compilation error in MetOfficeClient.cpp Jul 27, 2021
@vlastahajek
Copy link
Contributor Author

I would recommend this. I don't use PlatformIO. This was added automatically by Arduino, most probably by changing the setting to show all warnings.
However, It looks like that it is included because I received an email with failed builds in master with the exactly the same error.

@marcelstoer
Copy link
Member

It looks like that it is included because I received an email with failed builds in master with the exactly the same error.

Appears to be a new behavior as the CI build passed previously. Now it doesn't: https://github.com/ThingPulse/esp8266-weather-station/runs/3170920198 This is likely because we neither pin the PlatformIO version nor the platform & framework versions.

@marcelstoer marcelstoer merged commit 547ac8a into ThingPulse:master Jul 27, 2021
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

Successfully merging this pull request may close these issues.

2 participants