diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2021-08-28 14:08:25 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2021-09-02 21:14:51 +0930 |
commit | 2822728f2af36d7599962d8e57d293cd1a5a2f69 (patch) | |
tree | 925903003a405e3c19c5582e6353465aaa3f3ab2 /boilerplate | |
parent | 5e76dd7a5c0585515eeef5099f12b273c94d3b0f (diff) | |
download | cairo-2822728f2af36d7599962d8e57d293cd1a5a2f69.tar.gz |
Fix some MinGW warnings
The FT change is because my MinGW build is using a more recent version
of FT.
Remove the disabled _cairo_win32_scaled_font_text_to_glyphs() code to
fix the defined but not used warning.
_cairo_win32_scaled_font_text_to_glyphs() was diabled in d9408041aa with
the comment:
"Currently disable the win32-font text_to_glyphs(), until that one
is updated. Or better yet, remove it and implement
ucs4_to_index(). It's the toy font API afterall."
_cairo_win32_scaled_font_ucs4_to_index() was added in d1c619bc7d.
Diffstat (limited to 'boilerplate')
-rw-r--r-- | boilerplate/cairo-boilerplate.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/boilerplate/cairo-boilerplate.h b/boilerplate/cairo-boilerplate.h index 544d38816..736534eaf 100644 --- a/boilerplate/cairo-boilerplate.h +++ b/boilerplate/cairo-boilerplate.h @@ -74,8 +74,13 @@ #endif #if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ > 4) -#define CAIRO_BOILERPLATE_PRINTF_FORMAT(fmt_index, va_index) \ +#ifdef __MINGW32__ +#define CAIRO_BOILERPLATE_PRINTF_FORMAT(fmt_index, va_index) \ + __attribute__((__format__(__MINGW_PRINTF_FORMAT, fmt_index, va_index))) +#else +#define CAIRO_BOILERPLATE_PRINTF_FORMAT(fmt_index, va_index) \ __attribute__((__format__(__printf__, fmt_index, va_index))) +#endif #else #define CAIRO_BOILERPLATE_PRINTF_FORMAT(fmt_index, va_index) #endif |