aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/term.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c46f6f37cde..6bb7a6ff143 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,6 +2,8 @@
2 2
3 Fix more problems found by GCC 4.6.0's static checks. 3 Fix more problems found by GCC 4.6.0's static checks.
4 4
5 * term.c (vfatal, maybe_fatal): Mark as printf-like functions.
6
5 * sound.c (sound_warning): Don't crash if arg contains a printf format. 7 * sound.c (sound_warning): Don't crash if arg contains a printf format.
6 8
7 * image.c (tiff_error_handler, tiff_warning_handler): Mark as 9 * image.c (tiff_error_handler, tiff_warning_handler): Mark as
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);
85static void dissociate_if_controlling_tty (int fd); 85static void dissociate_if_controlling_tty (int fd);
86static void delete_tty (struct terminal *); 86static void delete_tty (struct terminal *);
87static void maybe_fatal (int must_succeed, struct terminal *terminal, 87static void maybe_fatal (int must_succeed, struct terminal *terminal,
88 const char *str1, const char *str2, ...) NO_RETURN; 88 const char *str1, const char *str2, ...)
89static void vfatal (const char *str, va_list ap) NO_RETURN; 89 NO_RETURN ATTRIBUTE_FORMAT_PRINTF (3, 5) ATTRIBUTE_FORMAT_PRINTF (4, 5);
90static void vfatal (const char *str, va_list ap)
91 NO_RETURN ATTRIBUTE_FORMAT_PRINTF (1, 0);
90 92
91 93
92#define OUTPUT(tty, a) \ 94#define OUTPUT(tty, a) \