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 compilation with MinGW #1443

Merged
merged 1 commit into from
Dec 2, 2019
Merged

Fix compilation with MinGW #1443

merged 1 commit into from
Dec 2, 2019

Conversation

bbolli
Copy link
Contributor

@bbolli bbolli commented Dec 2, 2019

Commit 3bc28fc ("Squelch MSVC warning exporting subclasses of
runtime_error", 2019-11-29) silenced a MSVC warning under. The MinGW
compiler also defines _WIN32, but does not support the "warning" pragma.

Introduce a helper macro to squelch the MSVC warning only when using the
Microsoft compiler.

Signed-off-by: Beat Bolli dev@drbeat.li

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

Commit 3bc28fc ("Squelch MSVC warning exporting subclasses of
runtime_error", 2019-11-29) silenced a MSVC warning under. The MinGW
compiler also defines _WIN32, but does not support the "warning" pragma.

Introduce a helper macro to squelch the MSVC warning only when using the
Microsoft compiler.

Signed-off-by: Beat Bolli <dev@drbeat.li>
@vitaut vitaut merged commit 5981588 into fmtlib:master Dec 2, 2019
@vitaut
Copy link
Contributor

vitaut commented Dec 2, 2019

Thanks!

@vitaut vitaut mentioned this pull request Dec 2, 2019
3 tasks
@bbolli bbolli deleted the squelch-mingw branch December 2, 2019 22:23
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