mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 13:37:12 +00:00
Get rid of the last two warnings by turning them off around the problem
statements, if the compiler supports it.
This commit is contained in:
4
log.c
4
log.c
@ -147,7 +147,7 @@ fatal(const char *msg, ...)
|
||||
va_start(ap, msg);
|
||||
if (asprintf(&fmt, "fatal: %s: %s", msg, strerror(errno)) == -1)
|
||||
exit(1);
|
||||
log_vwrite(fmt, ap);
|
||||
no_format_nonliteral(log_vwrite(fmt, ap));
|
||||
va_end(ap);
|
||||
exit(1);
|
||||
}
|
||||
@ -162,7 +162,7 @@ fatalx(const char *msg, ...)
|
||||
va_start(ap, msg);
|
||||
if (asprintf(&fmt, "fatal: %s", msg) == -1)
|
||||
exit(1);
|
||||
log_vwrite(fmt, ap);
|
||||
no_format_nonliteral(log_vwrite(fmt, ap));
|
||||
va_end(ap);
|
||||
exit(1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user