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

Fix build failure when not using fcntl with -Werror #1990

Merged
merged 4 commits into from
Nov 6, 2020

Conversation

fagg
Copy link
Contributor

@fagg fagg commented Nov 6, 2020

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

If not using fcntl, but building with -Werror enabled, there's a couple functions in the tests that aren't ifdef guarded and don't actually get called. This results in the tests failing to build (log attached) due to unused function warnings.

This PR just adds them to an ifdef guard so the tests build correctly.

blows_up.txt

test/gtest-extra-test.cc Outdated Show resolved Hide resolved
@fagg
Copy link
Contributor Author

fagg commented Nov 6, 2020

Removed sanitize() as suggested

@vitaut vitaut merged commit 506ff32 into fmtlib:master Nov 6, 2020
@vitaut
Copy link
Contributor

vitaut commented Nov 6, 2020

Thanks

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

2 participants