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

Don't build with -Werror #48

Merged
merged 1 commit into from Nov 29, 2019
Merged

Don't build with -Werror #48

merged 1 commit into from Nov 29, 2019

Conversation

AdrianBunk
Copy link
Contributor

New compiler versions might output new warnings by default
(see #47 for an example), which makes -Werror problematic
for distributions.

The more specific -Werror= settings are usually not a problem.

The warnings are still shown, but they will no longer break
the build.

Signed-off-by: Adrian Bunk bunk@debian.org

New compiler versions might output new warnings by default
(see #47 for an example), which makes -Werror problematic
for distributions.

The more specific -Werror= settings are usually not a problem.

The warnings are still shown, but they will no longer break
the build.

Signed-off-by: Adrian Bunk <bunk@debian.org>
@mdabrows
Copy link
Contributor

mdabrows commented Nov 6, 2019

I would prefer #47 to be fixed instead of disabling this flag. Are you ok to wait for proper solution or is this blocking release process in Debian?

Regards,
Mariusz

@AdrianBunk
Copy link
Contributor Author

You need both.

These warnings are useful for you as upstream to improve your code, and you should fix #47.

When distributions will switch to gcc 10 (or any other later compiler) there might be yet other new warnings, and it is a pain for distributions when software builds with -Werror which makes new warnings for old code fatal. In practice the result are usually quick hacks just to silence the warning by people who neither know nor use your code - this often creates more bugs than it fixes.

That's why the warnings are useful, but they shouldn't be errors.

@kilobyte
Copy link

The usual and recommended practice is to enable -Werror only on CI/development builds, and disable everywhere else. Otherwise, releases will keep breaking for reasons outside your control.

On the other hand, -Werror=a-specific-warning is safe.

@kilobyte
Copy link

@mdabrows: Debian packaging can carry arbitrary patches above upstream sources, thus it's not a show stopper. It is much preferred to submit all patches upstream, though.

@mdabrows
Copy link
Contributor

Hello,

After internal discussion this change can be accepted and we will improve our CI to keep benefits of
using this flag in development process.

Regards,
Mariusz

@mdabrows mdabrows merged commit e4ee8fe into intel:master Nov 29, 2019
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

3 participants