Browse Source

Merge branch 'master' of https://github.com/raysan5/raylib

Ray 1 year ago
parent
commit
e428ec940b
2 changed files with 11 additions and 1 deletions
  1. 1 1
      BINDINGS.md
  2. 10 0
      src/rtextures.c

+ 1 - 1
BINDINGS.md

@@ -77,7 +77,7 @@ Some people ported raylib to other languages in form of bindings or wrappers to
 | raylib-vapi        | 4.2     | [Vala](https://vala.dev/)            | Zlib     | https://github.com/lxmcf/raylib-vapi         |
 | raylib-wren        | 4.0     | [Wren](http://wren.io/)              | ISC | https://github.com/TSnake41/raylib-wren              |
 | raylib-zig         | 4.6-dev | [Zig](https://ziglang.org/)               | MIT | https://github.com/Not-Nik/raylib-zig     |
-| raylib.zig         | 4.6-dev | [Zig](https://ziglang.org/)               | MIT | https://github.com/ryupold/raylib.zig |
+| raylib.zig         | 5.1-dev | [Zig](https://ziglang.org/)               | MIT | https://github.com/ryupold/raylib.zig |
 | hare-raylib        | **auto** | [Hare](https://harelang.org/)        | Zlib | https://git.sr.ht/~evantj/hare-raylib       |
 | raylib-sunder      | **auto** | [Sunder](https://github.com/ashn-dot-dev/sunder) | 0BSD | https://github.com/ashn-dot-dev/raylib-sunder |
 | rayed-bqn          | **auto** | [BQN](https://mlochbaum.github.io/BQN/) | MIT | https://github.com/Brian-ED/rayed-bqn | 

+ 10 - 0
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"