aboutsummaryrefslogtreecommitdiff
path: root/raylib/rtext.c
diff options
context:
space:
mode:
Diffstat (limited to 'raylib/rtext.c')
-rw-r--r--raylib/rtext.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/raylib/rtext.c b/raylib/rtext.c
index a7d9903..68359df 100644
--- a/raylib/rtext.c
+++ b/raylib/rtext.c
@@ -71,12 +71,21 @@
#include <ctype.h> // Required for: toupper(), tolower() [Used in TextToUpper(), TextToLower()]
#if defined(SUPPORT_FILEFORMAT_TTF)
+ #if defined(__GNUC__) // GCC and Clang
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wunused-function"
+ #endif
+
#define STB_RECT_PACK_IMPLEMENTATION
#include "external/stb_rect_pack.h" // Required for: ttf font rectangles packaging
#define STBTT_STATIC
#define STB_TRUETYPE_IMPLEMENTATION
#include "external/stb_truetype.h" // Required for: ttf font data reading
+
+ #if defined(__GNUC__) // GCC and Clang
+ #pragma GCC diagnostic pop
+ #endif
#endif
//----------------------------------------------------------------------------------