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 /test/pdf-tagged-text.c | |
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 'test/pdf-tagged-text.c')
-rw-r--r-- | test/pdf-tagged-text.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pdf-tagged-text.c b/test/pdf-tagged-text.c index 8908eb25d..d0617d0d3 100644 --- a/test/pdf-tagged-text.c +++ b/test/pdf-tagged-text.c @@ -465,7 +465,9 @@ check_created_pdf(cairo_test_context_t *ctx, const char* filename) cairo_test_status_t result = CAIRO_TEST_SUCCESS; int fd; struct stat st; +#ifdef HAVE_MMAP void *contents; +#endif fd = open(filename, O_RDONLY, 0); if (fd < 0) { |