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

Do not use -Werror #3809

Merged
merged 1 commit into from
Dec 3, 2024
Merged

Do not use -Werror #3809

merged 1 commit into from
Dec 3, 2024

Conversation

ryandesign
Copy link
Contributor

Using -Werror can cause builds to fail when using unexpected compilers.

For example: https://trac.macports.org/ticket/71354

By all means, manually add -Werror to your CI if you want to ensure warning-free builds using compilers you're testing, but don't force it on your users and make their builds fail just because they're using a compiler that has a warning you didn't anticipate.

Using -Werror can cause builds to fail when using unexpected compilers.
@@ -41,7 +41,6 @@ cpu_family = host_machine.cpu_family()

supported_arguments = cpp.get_supported_arguments([
'-Wno-non-virtual-dtor',
'-Werror',
'-Wunused-but-set-variable',
'-Wno-strict-aliasing'])

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sees

alyssais added a commit to NixOS/nixpkgs that referenced this pull request Nov 30, 2024
-Werror isn't suitable for distro builds because it means new
breakages can appear before upstream has a chance to do anything about
them, and they might not be worth failing the build over.

Fixes building for musl.

Link: cisco/openh264#3809
@BenzhengZhang BenzhengZhang merged commit edbef4d into cisco:master Dec 3, 2024
8 checks passed
@ryandesign ryandesign deleted the patch-1 branch December 3, 2024 08:31
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.

4 participants