Mercurial > emacs
changeset 111003:d5445d83cf4a
image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 15 Oct 2010 12:10:20 +0200 |
parents | 62243368de05 |
children | a82eb17e110e |
files | src/ChangeLog src/image.c |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Fri Oct 15 08:10:56 2010 +0000 +++ b/src/ChangeLog Fri Oct 15 12:10:20 2010 +0200 @@ -1,3 +1,7 @@ +2010-10-15 Eli Zaretskii <eliz@gnu.org> + + * image.c (tiff_load): Cast 3rd argument to avoid compiler warning. + 2010-10-15 Tassilo Horn <tassilo@member.fsf.org> * Makefile.in (really-oldXMenu): Fix typo in variable name that
--- a/src/image.c Fri Oct 15 08:10:56 2010 +0000 +++ b/src/image.c Fri Oct 15 12:10:20 2010 +0200 @@ -6793,8 +6793,9 @@ memsrc.len = SBYTES (specified_data); memsrc.index = 0; - /* Casting return value avoids a GCC warning on W32. */ - tiff = (TIFF *)fn_TIFFClientOpen ("memory_source", "r", &memsrc, + /* Casting arguments return value avoids a GCC warning on W32. */ + tiff = (TIFF *)fn_TIFFClientOpen ("memory_source", "r", + (thandle_t) &memsrc, (TIFFReadWriteProc) tiff_read_from_memory, (TIFFReadWriteProc) tiff_write_from_memory, tiff_seek_in_memory,