diff options
| author | Po Lu | 2023-10-18 09:09:47 +0800 |
|---|---|---|
| committer | Po Lu | 2023-10-18 09:09:47 +0800 |
| commit | 516b490bb4fbc1828a50fd81e397f3feb614d0ad (patch) | |
| tree | 7096817b922deb6b45b1a4ae93b74ef7a5e0e2c1 /src | |
| parent | 6254b23a38788e989e835b77071409dfdf2ec1a1 (diff) | |
| download | emacs-516b490bb4fbc1828a50fd81e397f3feb614d0ad.tar.gz emacs-516b490bb4fbc1828a50fd81e397f3feb614d0ad.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sfntfont.c | 7 |
1 files changed, 6 insertions, 1 deletions
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, | |||
| 2784 | static void | 2784 | static void |
| 2785 | sfnt_close_tables (struct sfnt_font_tables *tables) | 2785 | sfnt_close_tables (struct sfnt_font_tables *tables) |
| 2786 | { | 2786 | { |
| 2787 | #ifdef HAVE_MMAP | ||
| 2787 | int rc; | 2788 | int rc; |
| 2789 | #endif /* HAVE_MMAP */ | ||
| 2788 | 2790 | ||
| 2789 | xfree (tables->cmap); | 2791 | xfree (tables->cmap); |
| 2790 | xfree (tables->hhea); | 2792 | xfree (tables->hhea); |
| @@ -2839,7 +2841,10 @@ sfnt_open_tables (struct sfnt_font_desc *desc) | |||
| 2839 | { | 2841 | { |
| 2840 | struct sfnt_font_tables *tables; | 2842 | struct sfnt_font_tables *tables; |
| 2841 | struct sfnt_offset_subtable *subtable; | 2843 | struct sfnt_offset_subtable *subtable; |
| 2842 | int fd, i, rc; | 2844 | int fd, i; |
| 2845 | #ifdef HAVE_MMAP | ||
| 2846 | int rc; | ||
| 2847 | #endif /* HAVE_MMAP */ | ||
| 2843 | struct sfnt_cmap_encoding_subtable *subtables; | 2848 | struct sfnt_cmap_encoding_subtable *subtables; |
| 2844 | struct sfnt_cmap_encoding_subtable_data **data; | 2849 | struct sfnt_cmap_encoding_subtable_data **data; |
| 2845 | struct sfnt_cmap_format_14 *format14; | 2850 | struct sfnt_cmap_format_14 *format14; |