From c43c8a6af9f6877b97c1f9a88e361456775cb88b Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 29 Aug 2011 13:04:46 -0700 Subject: [PATCH] * xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF. --- src/ChangeLog | 2 ++ src/xterm.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 38779ef8598..d38d2df6b8c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -99,6 +99,8 @@ * xterm.c (x_io_error_quitter): Don't overrun sprintf buffer. + * xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF. + 2011-08-26 Paul Eggert Integer and memory overflow issues (Bug#9196). diff --git a/src/xterm.h b/src/xterm.h index 30867656710..fe86a32d09f 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -955,7 +955,8 @@ XrmDatabase x_load_resources (Display *, const char *, const char *, extern int x_text_icon (struct frame *, const char *); extern int x_bitmap_icon (struct frame *, Lisp_Object); extern void x_catch_errors (Display *); -extern void x_check_errors (Display *, const char *); +extern void x_check_errors (Display *, const char *) + ATTRIBUTE_FORMAT_PRINTF (2, 0); extern int x_had_errors_p (Display *); extern int x_catching_errors (void); extern void x_uncatch_errors (void); -- 2.39.2