diff options
| author | ubkp <[email protected]> | 2024-01-05 18:22:58 -0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-05 22:22:58 +0100 |
| commit | 19bdcedf1c0606987665b66b9d52a1cfb20c6887 (patch) | |
| tree | a2dc6163c5a53e7d023df642a814c31bb579904d | |
| parent | eb6dcab308162037272edbad93ea1f10797c7352 (diff) | |
| download | raylib-19bdcedf1c0606987665b66b9d52a1cfb20c6887.tar.gz raylib-19bdcedf1c0606987665b66b9d52a1cfb20c6887.zip | |
Hide unused warnings from stb_image_resize2.h (#3708)
| -rw-r--r-- | src/rtextures.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rtextures.c b/src/rtextures.c index 9c257808..a2bba1cf 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -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" |
