Skip to content

Commit

Permalink
Hide unused warnings from stb_image_resize2.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ubkp committed Jan 5, 2024
1 parent eb6dcab commit 2cb6704
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,19 @@

#define STBIR_MALLOC(size,c) ((void)(c), RL_MALLOC(size))
#define STBIR_FREE(ptr,c) ((void)(c), RL_FREE(ptr))

#if defined(__GNUC__) // GCC and Clang
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif

#define STB_IMAGE_RESIZE_IMPLEMENTATION
#include "external/stb_image_resize2.h" // Required for: stbir_resize_uint8_linear() [ImageResize()]

#if defined(__GNUC__) // GCC and Clang
#pragma GCC diagnostic pop
#endif

#if defined(SUPPORT_FILEFORMAT_SVG)
#define NANOSVG_IMPLEMENTATION // Expands implementation
#include "external/nanosvg.h"
Expand Down

0 comments on commit 2cb6704

Please sign in to comment.