From 9c3175cc15fbe8d3528375d1389dad40b19b7665 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Thu, 22 Aug 2013 21:30:09 +0200 Subject: 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 Signed-off-by: Luiz Capitulino --- monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'monitor.c') diff --git a/monitor.c b/monitor.c index ee9744cfb6..8c23e29d8f 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); -- cgit v1.2.1