Mercurial > emacs
diff src/image.c @ 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 | 8955f6658bfa |
children | 230a50b33a46 |
line wrap: on
line diff
--- 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,