summaryrefslogtreecommitdiff
path: root/src/term.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-04-05 13:08:58 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-04-05 13:08:58 -0700
commit13841b558c0d4515387b93bcb7fe0fadf0e68579 (patch)
treefc05922b173b399d679d0f6fa36403126c72c5c9 /src/term.c
parentc136c10f5967fa2224d5d0d63681486161cc2aba (diff)
downloademacs-13841b558c0d4515387b93bcb7fe0fadf0e68579.tar.gz
* term.c (vfatal, maybe_fatal): Mark as printf-like functions.
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c6
1 files changed, 4 insertions, 2 deletions
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) \