fix c11 -Wall warnings

This commit is contained in:
lesleyrs
2026-02-23 16:25:46 +01:00
committed by Ben Visness
parent 142ba3cd9d
commit aaa3a9e060

View File

@@ -2329,9 +2329,9 @@ static inline HMM_Quat HMM_NormQ(HMM_Quat Quat)
ASSERT_COVERED(HMM_NormQ);
/* NOTE(lcf): Take advantage of SSE implementation in HMM_NormV4 */
HMM_Vec4 Vec = {Quat.X, Quat.Y, Quat.Z, Quat.W};
HMM_Vec4 Vec = HMM_V4(Quat.X, Quat.Y, Quat.Z, Quat.W);
Vec = HMM_NormV4(Vec);
HMM_Quat Result = {Vec.X, Vec.Y, Vec.Z, Vec.W};
HMM_Quat Result = HMM_Q(Vec.X, Vec.Y, Vec.Z, Vec.W);
return Result;
}
@@ -3804,7 +3804,7 @@ static inline HMM_Vec4 operator-(HMM_Vec4 In)
#ifdef HANDMADE_MATH__USE_C11_GENERICS
void __hmm_invalid_generic();
void __hmm_invalid_generic(void);
#define HMM_Add(A, B) _Generic((A), \
HMM_Vec2: HMM_AddV2, \