Skip to content

Commit

Permalink
Fix release build on linux with gcc 12
Browse files Browse the repository at this point in the history
Some errors in cgltf library.
  • Loading branch information
guillaumechereau committed Apr 1, 2023
1 parent a2d6d88 commit 4cdf7bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/formats/gltf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cdf7bc

Please sign in to comment.