1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +00:00

fix MSVC warnings for module

This commit is contained in:
Arthur LAURENT 2025-04-29 14:47:48 +02:00
parent a413fcc9c4
commit 0084a0c92d
No known key found for this signature in database
GPG key ID: 0FB7E24DC9A66759

View file

@ -11,10 +11,19 @@ export module magic_enum;
import std; import std;
extern "C++" { extern "C++" {
#ifdef __clang__
#pragma clang diagnostic push #pragma clang diagnostic push
#pragma clang diagnostic ignored "-Winclude-angled-in-module-purview" #pragma clang diagnostic ignored "-Winclude-angled-in-module-purview"
#elif defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:5244)
#endif
#include <magic_enum/magic_enum_all.hpp> #include <magic_enum/magic_enum_all.hpp>
#ifdef __clang__
#pragma clang diagnostic pop #pragma clang diagnostic pop
#elif defined(_MSC_VER)
#pragma warning(pop)
#endif
} }
#endif #endif