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

add -Werror=return-type for all warning options #711

Merged
merged 2 commits into from
Jan 6, 2022

Conversation

hathach
Copy link
Member

@hathach hathach commented Jan 6, 2022

Fix dangerous issue where the function declared with return value does not return at all. Which could cause mis-matched issue on the execution stack. Force this as an error for all compiler warning option. See also https://forums.adafruit.com/viewtopic.php?f=62&t=186839

@hathach hathach requested a review from ladyada January 6, 2022 11:19
@hathach hathach merged commit bf2cff4 into master Jan 6, 2022
@hathach hathach deleted the add-Werror=return-type branch January 6, 2022 19:19
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.

None yet

2 participants