diff options
| author | Paul Eggert | 2011-04-05 13:08:58 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-05 13:08:58 -0700 |
| commit | 13841b558c0d4515387b93bcb7fe0fadf0e68579 (patch) | |
| tree | fc05922b173b399d679d0f6fa36403126c72c5c9 /src | |
| parent | c136c10f5967fa2224d5d0d63681486161cc2aba (diff) | |
| download | emacs-13841b558c0d4515387b93bcb7fe0fadf0e68579.tar.gz emacs-13841b558c0d4515387b93bcb7fe0fadf0e68579.zip | |
* term.c (vfatal, maybe_fatal): Mark as printf-like functions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/term.c | 6 |
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); | |||
| 85 | static void dissociate_if_controlling_tty (int fd); | 85 | static void dissociate_if_controlling_tty (int fd); |
| 86 | static void delete_tty (struct terminal *); | 86 | static void delete_tty (struct terminal *); |
| 87 | static void maybe_fatal (int must_succeed, struct terminal *terminal, | 87 | static 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, ...) |
| 89 | static void vfatal (const char *str, va_list ap) NO_RETURN; | 89 | NO_RETURN ATTRIBUTE_FORMAT_PRINTF (3, 5) ATTRIBUTE_FORMAT_PRINTF (4, 5); |
| 90 | static 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) \ |