Skip to content

GCC/llvm: Enable a lot more warnings, error on missing return value#19580

Merged
hrydgard merged 2 commits intomasterfrom
error-on-missing-return
Nov 4, 2024
Merged

GCC/llvm: Enable a lot more warnings, error on missing return value#19580
hrydgard merged 2 commits intomasterfrom
error-on-missing-return

Conversation

@hrydgard
Copy link
Owner

@hrydgard hrydgard commented Nov 4, 2024

Should prevent #19579 from ever happening again, hopefully.

This is the key, and everyone should always enable it: -Werror=return-type

@hrydgard hrydgard added the Code Cleanup Cleanup to make future work easier. Needs to be done sometimes. label Nov 4, 2024
@hrydgard hrydgard added this to the v1.18.1 milestone Nov 4, 2024
@hrydgard hrydgard merged commit 6bbb0bc into master Nov 4, 2024
@hrydgard hrydgard deleted the error-on-missing-return branch November 4, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Code Cleanup Cleanup to make future work easier. Needs to be done sometimes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant