From 4cdf7bc49cbfd87e60692f49483ea60271729845 Mon Sep 17 00:00:00 2001 From: Guillaume Chereau Date: Sat, 1 Apr 2023 16:04:28 +0800 Subject: [PATCH] Fix release build on linux with gcc 12 Some errors in cgltf library. --- src/formats/gltf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/formats/gltf.c b/src/formats/gltf.c index 210506b37..611956d0a 100644 --- a/src/formats/gltf.c +++ b/src/formats/gltf.c @@ -22,9 +22,12 @@ #include "utils/json.h" #include "utils/vec.h" +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wformat-truncation" #define CGLTF_IMPLEMENTATION #define CGLTF_WRITE_IMPLEMENTATION #include "../ext_src/cgltf/cgltf_write.h" +#pragma GCC diagnostic pop typedef struct { cgltf_data *data;