Commit 516b490b authored by Po Lu's avatar Po Lu
Browse files

Mollify compiler under Android builds without mmap

* src/sfntfont.c (sfnt_close_tables, sfnt_open_tables)
[!HAVE_MMAP]: Do not declare rc for munmap or mmap.
parent 6254b23a
Pipeline #26801 failed with stages
in 44 minutes and 59 seconds
......@@ -2784,7 +2784,9 @@ sfntfont_setup_interpreter (struct sfnt_font_info *info,
static void
sfnt_close_tables (struct sfnt_font_tables *tables)
{
#ifdef HAVE_MMAP
int rc;
#endif /* HAVE_MMAP */
xfree (tables->cmap);
xfree (tables->hhea);
......@@ -2839,7 +2841,10 @@ sfnt_open_tables (struct sfnt_font_desc *desc)
{
struct sfnt_font_tables *tables;
struct sfnt_offset_subtable *subtable;
int fd, i, rc;
int fd, i;
#ifdef HAVE_MMAP
int rc;
#endif /* HAVE_MMAP */
struct sfnt_cmap_encoding_subtable *subtables;
struct sfnt_cmap_encoding_subtable_data **data;
struct sfnt_cmap_format_14 *format14;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment