diff options
| author | ashn <[email protected]> | 2023-08-09 13:17:12 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-08-09 19:17:12 +0200 |
| commit | 90f17499658275ace1e4d1bed1aa231e34ac38b6 (patch) | |
| tree | 4e4719e2153911720fe4adafc44f3c69f84744e3 /src/rtext.c | |
| parent | 42cfabc67069fd01ee8c0b00d58862e32f0942fb (diff) | |
| download | raylib-90f17499658275ace1e4d1bed1aa231e34ac38b6.tar.gz raylib-90f17499658275ace1e4d1bed1aa231e34ac38b6.zip | |
Ignore unused function warnings from external headers when compiling with GCC and Clang (#3235)
Diffstat (limited to 'src/rtext.c')
| -rw-r--r-- | src/rtext.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/rtext.c b/src/rtext.c index a7d9903a..d6aa6d73 100644 --- a/src/rtext.c +++ b/src/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 //---------------------------------------------------------------------------------- |
