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

Allow disabling the -Werror flag. #1210

Merged

Conversation

Romain-Geissler-1A
Copy link
Contributor

This follows my message in #1193, packagers usually don't want to enable -Werror, this is only for developers working on Redis itself.

Typically right now we tried to upgrade to hiredis 1.2.0, we force using LTO in our builds, and we also build tests (to at least run the test and make sure our toolchain doesn't seem to buggy). With gcc 11, we get lots of false positive warnings in sds.c (wrong stringop-overflow warnings, warning which is known to create quite some problems here and there since it was introduced), which don't come out with gcc 13. Given how old is gcc 11 now and given that it doesn't happen with gcc 13, I doubt that reporting this bugs to the gcc project will help.

So is such an opt-out flag ok or not ? I copied what was done for USE_SSL.

@michael-grunder michael-grunder merged commit bff171c into redis:master Jul 13, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants