summaryrefslogtreecommitdiffhomepage
path: root/src/rtextures.c
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2023-01-20 07:05:19 -0800
committerGitHub <[email protected]>2023-01-20 16:05:19 +0100
commitedaca16d7c007846422cd6e098b117f6f8bab99d (patch)
treec50c4a444abbeeaf0db2fd15cd9ca38ec5f2ebb7 /src/rtextures.c
parent116603e61c43ea272c6114c45f22faf924dafac9 (diff)
downloadraylib-edaca16d7c007846422cd6e098b117f6f8bab99d.tar.gz
raylib-edaca16d7c007846422cd6e098b117f6f8bab99d.zip
Fix warnings in raylib project from MSVC (#2871)
Diffstat (limited to 'src/rtextures.c')
-rw-r--r--src/rtextures.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index 5d171848..05dacb21 100644
--- a/src/rtextures.c
+++ b/src/rtextures.c
@@ -163,8 +163,17 @@
#define QOI_MALLOC RL_MALLOC
#define QOI_FREE RL_FREE
+#if defined(_MSC_VER ) // qoi has warnings on windows, so disable them just for this file
+#pragma warning( push )
+#pragma warning( disable : 4267)
+#endif
#define QOI_IMPLEMENTATION
#include "external/qoi.h"
+
+#if defined(_MSC_VER )
+#pragma warning( pop )
+#endif
+
#endif
#if defined(SUPPORT_IMAGE_EXPORT)