mirror of
https://github.com/HandmadeMath/HandmadeMath.git
synced 2025-12-28 15:44:33 +00:00
Restrict struct warning suppression to clang only (#50)
* Restrict struct warning suppression to clang only * Update changelist * Move gcc diagnostic pop inside header section
This commit is contained in:
@@ -153,7 +153,6 @@
|
||||
(*) Added HMM_NormalizeVec4
|
||||
1.0
|
||||
(*) Lots of testing!
|
||||
|
||||
1.1
|
||||
(*) Quaternion support
|
||||
(*) Added type hmm_quaternion
|
||||
@@ -170,6 +169,8 @@
|
||||
(*) Added HMM_Slerp
|
||||
(*) Added HMM_QuaternionToMat4
|
||||
(*) Added HMM_QuaternionFromAxisAngle
|
||||
1.1.1
|
||||
(*) Resolved compiler warnings on gcc and g++
|
||||
|
||||
LICENSE
|
||||
|
||||
@@ -206,7 +207,8 @@
|
||||
#pragma warning(disable:4201)
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#ifdef __clang__
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wgnu-anonymous-struct"
|
||||
#endif
|
||||
|
||||
@@ -657,6 +659,10 @@ HMMDEF hmm_quaternion &operator/=(hmm_quaternion &Left, float Right);
|
||||
|
||||
#endif /* HANDMADE_MATH_CPP */
|
||||
|
||||
#ifdef __clang__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#endif /* HANDMADE_MATH_H */
|
||||
|
||||
#ifdef HANDMADE_MATH_IMPLEMENTATION
|
||||
|
||||
Reference in New Issue
Block a user