From eb6dcab308162037272edbad93ea1f10797c7352 Mon Sep 17 00:00:00 2001 From: Michael Scherbakow Date: Thu, 4 Jan 2024 10:51:53 +0100 Subject: [PATCH 1/2] Update raylib.zig version to 5.1-dev (#3698) --- BINDINGS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BINDINGS.md b/BINDINGS.md index 8c821903c..ab0d77896 100644 --- a/BINDINGS.md +++ b/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 | From 19bdcedf1c0606987665b66b9d52a1cfb20c6887 Mon Sep 17 00:00:00 2001 From: ubkp <118854183+ubkp@users.noreply.github.com> Date: Fri, 5 Jan 2024 18:22:58 -0300 Subject: [PATCH 2/2] Hide unused warnings from stb_image_resize2.h (#3708) --- src/rtextures.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/rtextures.c b/src/rtextures.c index 9c257808a..a2bba1cf7 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"