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

Suppress gcc warning on privates-only class #2053

Merged
merged 1 commit into from
Dec 9, 2020

Conversation

Finkman
Copy link
Contributor

@Finkman Finkman commented Dec 7, 2020

Since gcc 9 it warns about is_streamable to have only private methods.

I agree that my contributions are licensed under the {fmt} license, and agree to future changes to the licensing.

Copy link
Contributor

@vitaut vitaut left a comment

Choose a reason for hiding this comment

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

The warning can be suppressed in a simpler way by adding a defaulted ctor.

@Finkman Finkman force-pushed the suppress-gcc-only-privates branch from 770699a to f0b7578 Compare December 9, 2020 06:45
Since gcc 9 it warns about is_streamable to have only private methods.
Add explicit default ctor instead of suppression
@Finkman
Copy link
Contributor Author

Finkman commented Dec 9, 2020

oh yes... that's much less invasive

@vitaut vitaut merged commit 9293f70 into fmtlib:master Dec 9, 2020
@vitaut
Copy link
Contributor

vitaut commented Dec 9, 2020

Thanks!

@Finkman Finkman deleted the suppress-gcc-only-privates branch March 1, 2021 07:55
@Finkman Finkman mentioned this pull request May 10, 2021
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.

2 participants