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

cmake: drop -Werror from c++ flags #337

Closed
wants to merge 1 commit into from
Closed

Conversation

junghans
Copy link
Contributor

Putting -Werror in by default is very bad. Nobody knows what warning future compilers will show!

junghans referenced this pull request in gentoo/gentoo Aug 31, 2016
Package-Manager: portage-2.2.28
@junghans
Copy link
Contributor Author

junghans commented Sep 3, 2016

Same here, broken in v1.2.1 with gcc-6.1 on OpenSUSE:
https://build.opensuse.org/package/show/devel:libraries:c_c++/cereal

Alternatively, you could add an cmake option, e.g DONT_INJECT_WERROR.

@AzothAmmo
Copy link
Contributor

I think the best solution to this would be adding a cmake option.

@junghans
Copy link
Contributor Author

junghans commented Oct 5, 2016

Done

AzothAmmo added a commit that referenced this pull request Oct 11, 2016
AzothAmmo added a commit that referenced this pull request Oct 11, 2016
@AzothAmmo
Copy link
Contributor

Merged into develop; I modified the logic so that the option isn't a negation (DONT_INJECT -> WITH_WERROR). Default is to use Werror, as you had.

@AzothAmmo AzothAmmo closed this Oct 11, 2016
@AzothAmmo AzothAmmo added this to the v1.2.2 milestone Oct 11, 2016
@junghans junghans deleted the Werror branch October 18, 2016 01:17
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