diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-08-22 21:30:09 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2013-08-30 07:41:14 -0400 |
commit | 9c3175cc15fbe8d3528375d1389dad40b19b7665 (patch) | |
tree | cb323f5c6b9125169b54a8ebdedcec383d74cfc9 /monitor.c | |
parent | b5d54bd42158b90b239bb6ce9c13072eb3a53fd2 (diff) | |
download | qemu-9c3175cc15fbe8d3528375d1389dad40b19b7665.tar.gz qemu-9c3175cc15fbe8d3528375d1389dad40b19b7665.tar.bz2 qemu-9c3175cc15fbe8d3528375d1389dad40b19b7665.zip |
monitor: Add missing attributes to local function
Function expr_error gets a format string and variable arguments like printf.
It also never returns. Add the necessary attributes.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3171,7 +3171,8 @@ static const MonitorDef monitor_defs[] = { { NULL }, }; -static void expr_error(Monitor *mon, const char *fmt, ...) +static void GCC_FMT_ATTR(2, 3) QEMU_NORETURN +expr_error(Monitor *mon, const char *fmt, ...) { va_list ap; va_start(ap, fmt); |