8000
Skip to content

Suppress gcc warning on privates-only class#2053

Merged
vitaut merged 1 commit intofmtlib:masterfrom
Finkman:suppress-gcc-only-privates
Dec 9, 2020
Merged

Suppress gcc warning on privates-only class#2053
vitaut merged 1 commit intofmtlib:masterfrom
Finkman:suppress-gcc-only-privates

Conversation

@Finkman
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

0