From 13841b558c0d4515387b93bcb7fe0fadf0e68579 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 5 Apr 2011 13:08:58 -0700 Subject: * term.c (vfatal, maybe_fatal): Mark as printf-like functions. --- src/term.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/term.c') diff --git a/src/term.c b/src/term.c index fc07c2b8d06..d4e5faf01c8 100644 --- a/src/term.c +++ b/src/term.c @@ -85,8 +85,10 @@ static void set_tty_hooks (struct terminal *terminal); static void dissociate_if_controlling_tty (int fd); static void delete_tty (struct terminal *); static void maybe_fatal (int must_succeed, struct terminal *terminal, - const char *str1, const char *str2, ...) NO_RETURN; -static void vfatal (const char *str, va_list ap) NO_RETURN; + const char *str1, const char *str2, ...) + NO_RETURN ATTRIBUTE_FORMAT_PRINTF (3, 5) ATTRIBUTE_FORMAT_PRINTF (4, 5); +static void vfatal (const char *str, va_list ap) + NO_RETURN ATTRIBUTE_FORMAT_PRINTF (1, 0); #define OUTPUT(tty, a) \ -- cgit v1.2.1