From: Paul Eggert Date: Mon, 29 Aug 2011 20:04:46 +0000 (-0700) Subject: * xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF. X-Git-Tag: emacs-pretest-24.0.90~104^2~153^2~1^2~14 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c43c8a6af9f6877b97c1f9a88e361456775cb88b;p=emacs.git * xterm.h (x_check_errors): Add ATTRIBUTE_FORMAT_PRINTF. --- 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);