Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
13841b55
Commit
13841b55
authored
Apr 05, 2011
by
Paul Eggert
Browse files
* term.c (vfatal, maybe_fatal): Mark as printf-like functions.
parent
c136c10f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/ChangeLog
src/ChangeLog
+2
-0
src/term.c
src/term.c
+4
-2
No files found.
src/ChangeLog
View file @
13841b55
...
...
@@ -2,6 +2,8 @@
Fix more problems found by GCC 4.6.0's static checks.
* term.c (vfatal, maybe_fatal): Mark as printf-like functions.
* sound.c (sound_warning): Don't crash if arg contains a printf format.
* image.c (tiff_error_handler, tiff_warning_handler): Mark as
src/term.c
View file @
13841b55
...
...
@@ -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) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment