From c32e986497efd786f03e6d41a1e1376c421c6a71 Mon Sep 17 00:00:00 2001 From: Recep Aslantas Date: Fri, 29 May 2020 12:51:45 +0300 Subject: [PATCH] mat2: suppress warnings for initializing mat2 sruct --- include/cglm/struct/mat2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cglm/struct/mat2.h b/include/cglm/struct/mat2.h index c73f13c..a8ee27f 100644 --- a/include/cglm/struct/mat2.h +++ b/include/cglm/struct/mat2.h @@ -36,8 +36,8 @@ #include "../types-struct.h" #include "../mat2.h" -#define GLMS_MAT2_IDENTITY_INIT {1.0f, 0.0f, 0.0f, 1.0f} -#define GLMS_MAT2_ZERO_INIT {0.0f, 0.0f, 0.0f, 0.0f} +#define GLMS_MAT2_IDENTITY_INIT {GLM_MAT2_IDENTITY_INIT} +#define GLMS_MAT2_ZERO_INIT {GLM_MAT2_ZERO_INIT} /* for C only */ #define GLMS_MAT2_IDENTITY ((mat3s)GLMS_MAT2_IDENTITY_INIT)