mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-12 09:28:24 +00:00
* image.c (tiff_error_handler, tiff_warning_handler): Mark as
printf-like functions. (tiff_load): Add casts to remove these marks before passing them to system-supplied API.
This commit is contained in:
parent
583f48b90b
commit
5e2d4a30b2
@ -2,6 +2,11 @@
|
|||||||
|
|
||||||
Fix more problems found by GCC 4.6.0's static checks.
|
Fix more problems found by GCC 4.6.0's static checks.
|
||||||
|
|
||||||
|
* image.c (tiff_error_handler, tiff_warning_handler): Mark as
|
||||||
|
printf-like functions.
|
||||||
|
(tiff_load): Add casts to remove these marks before passing them
|
||||||
|
to system-supplied API.
|
||||||
|
|
||||||
* eval.c (Fsignal): Remove excess argument to 'fatal'.
|
* eval.c (Fsignal): Remove excess argument to 'fatal'.
|
||||||
|
|
||||||
* coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.
|
* coding.c (EMIT_ONE_BYTE, EMIT_TWO_BYTES): Use unsigned, not int.
|
||||||
|
@ -6714,6 +6714,8 @@ tiff_size_of_memory (thandle_t data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void tiff_error_handler (const char *, const char *, va_list)
|
||||||
|
ATTRIBUTE_FORMAT_PRINTF (2, 0);
|
||||||
static void
|
static void
|
||||||
tiff_error_handler (const char *title, const char *format, va_list ap)
|
tiff_error_handler (const char *title, const char *format, va_list ap)
|
||||||
{
|
{
|
||||||
@ -6726,6 +6728,8 @@ tiff_error_handler (const char *title, const char *format, va_list ap)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static void tiff_warning_handler (const char *, const char *, va_list)
|
||||||
|
ATTRIBUTE_FORMAT_PRINTF (2, 0);
|
||||||
static void
|
static void
|
||||||
tiff_warning_handler (const char *title, const char *format, va_list ap)
|
tiff_warning_handler (const char *title, const char *format, va_list ap)
|
||||||
{
|
{
|
||||||
@ -6757,8 +6761,8 @@ tiff_load (struct frame *f, struct image *img)
|
|||||||
specified_file = image_spec_value (img->spec, QCfile, NULL);
|
specified_file = image_spec_value (img->spec, QCfile, NULL);
|
||||||
specified_data = image_spec_value (img->spec, QCdata, NULL);
|
specified_data = image_spec_value (img->spec, QCdata, NULL);
|
||||||
|
|
||||||
fn_TIFFSetErrorHandler (tiff_error_handler);
|
fn_TIFFSetErrorHandler ((TIFFErrorHandler) tiff_error_handler);
|
||||||
fn_TIFFSetWarningHandler (tiff_warning_handler);
|
fn_TIFFSetWarningHandler ((TIFFErrorHandler) tiff_warning_handler);
|
||||||
|
|
||||||
if (NILP (specified_data))
|
if (NILP (specified_data))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user