From: Po Lu Date: Wed, 18 Oct 2023 01:09:47 +0000 (+0800) Subject: Mollify compiler under Android builds without mmap X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=516b490bb4fbc1828a50fd81e397f3feb614d0ad;p=emacs.git 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. --- diff --git a/src/sfntfont.c b/src/sfntfont.c index 3506742a92b..2c58de31a16 100644 --- a/src/sfntfont.c +++ b/src/sfntfont.c @@ -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;