diff options
author | pommicket <pommicket@gmail.com> | 2023-01-10 10:40:10 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-01-10 10:40:10 -0500 |
commit | b0fe15647d196081d801db574fa074ff77e46f5f (patch) | |
tree | 786d4b15493ab469811fc7cd139f5d664f414644 /stb_truetype.c | |
parent | edd5188dfba93b8ffe376d0c194804f35f43dcaa (diff) |
linux build , etc.
Diffstat (limited to 'stb_truetype.c')
-rw-r--r-- | stb_truetype.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/stb_truetype.c b/stb_truetype.c index 444b245..2df7a90 100644 --- a/stb_truetype.c +++ b/stb_truetype.c @@ -1,4 +1,23 @@ // used for debug build to speed things up // just exports everything in stb_truetype.h + + +#ifdef __GNUC__ +#define no_warn_start _Pragma("GCC diagnostic push") \ + _Pragma("GCC diagnostic ignored \"-Wpedantic\"") \ + _Pragma("GCC diagnostic ignored \"-Wsign-conversion\"") \ + _Pragma("GCC diagnostic ignored \"-Wsign-compare\"") \ + _Pragma("GCC diagnostic ignored \"-Wconversion\"") \ + _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"") \ + _Pragma("GCC diagnostic ignored \"-Wunused-function\"") + +#define no_warn_end _Pragma("GCC diagnostic pop") +#else +#define no_warn_start +#define no_warn_end +#endif + #define STB_TRUETYPE_IMPLEMENTATION +no_warn_start #include "lib/stb_truetype.h" +no_warn_end |