Skip to content

Fix compilation with FMT_ENFORCE_COMPILE_STRING and FMT_WERROR - #3091

Merged
vitaut merged 1 commit into
fmtlib:masterfrom
asmaloney:fix-compile-with-FMT_ENFORCE_COMPILE_STRING
Sep 11, 2022
Merged

vitaut merged 1 commit into
fmtlib:masterfrom
asmaloney:fix-compile-with-FMT_ENFORCE_COMPILE_STRING

Conversation

@asmaloney

@asmaloney asmaloney commented Sep 10, 2022

Copy link
Copy Markdown
Contributor

With Apple clang version 13.1.6 (clang-1316.0.21.2.5), turning on FMT_ENFORCE_COMPILE_STRING and FMT_WERROR fails to compile fmt itself.

This PR adds FMT_STRING around several strings in os.cc to fix it.

It also clang-formatted another line (172) which I left in this PR.

@vitaut
vitaut merged commit 8ae5616 into fmtlib:master Sep 11, 2022
@vitaut

vitaut commented Sep 11, 2022

Copy link
Copy Markdown
Contributor

Thank you

@asmaloney
asmaloney deleted the fix-compile-with-FMT_ENFORCE_COMPILE_STRING branch September 11, 2022 01:27
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