aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-08-22 21:30:09 +0200
committerLuiz Capitulino <lcapitulino@redhat.com>2013-08-30 07:41:14 -0400
commit9c3175cc15fbe8d3528375d1389dad40b19b7665 (patch)
treecb323f5c6b9125169b54a8ebdedcec383d74cfc9 /monitor.c
parentb5d54bd42158b90b239bb6ce9c13072eb3a53fd2 (diff)
downloadqemu-9c3175cc15fbe8d3528375d1389dad40b19b7665.zip
qemu-9c3175cc15fbe8d3528375d1389dad40b19b7665.tar.gz
qemu-9c3175cc15fbe8d3528375d1389dad40b19b7665.tar.bz2
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index ee9744c..8c23e29 100644
--- a/monitor.c
+++ b/monitor.c
@@ -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);