Remove disabled warnings (#1213)

* Remove disabled warnings
This commit is contained in:
Christophe
2024-01-20 10:11:13 +01:00
committed by GitHub
parent b06b775c1c
commit f86092a658
182 changed files with 2669 additions and 1719 deletions

View File

@@ -14,11 +14,28 @@ struct vec2
x(0), y(0)
{}
#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable: 4201) // nonstandard extension used : nameless struct/union
#endif
#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wgnu-anonymous-struct"
# pragma clang diagnostic ignored "-Wnested-anon-types"
#endif
union
{
struct { float x, y; };
struct { _swizzle xx; };
};
#if GLM_COMPILER & GLM_COMPILER_CLANG
# pragma clang diagnostic pop
#endif
#if defined(_MSC_VER)
# pragma warning(pop)
#endif
};
#endif