[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 516b490bb4f: Mollify compiler under Android builds without mmap
From: |
Po Lu |
Subject: |
master 516b490bb4f: Mollify compiler under Android builds without mmap |
Date: |
Tue, 17 Oct 2023 21:10:22 -0400 (EDT) |
branch: master
commit 516b490bb4fbc1828a50fd81e397f3feb614d0ad
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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.
---
src/sfntfont.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 516b490bb4f: Mollify compiler under Android builds without mmap,
Po Lu <=