monitor: Add missing attributes to local function
PATCH 1/1 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 <[email protected]>
--- monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
monitor.c +2 -1
@@ -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);
Signature · 1 line
1.7.10.4
Luiz Capitulino
AppliedQuoted 4 lines · On Thu, 22 Aug 2013 21:30:09 +0200 Stefan Weil <[email protected]> wrote:
Function
expr_errorgets a format string and variable arguments like printf. It also never returns. Add the necessary attributes.Signed-off-by Stefan Weil <[email protected]>
Applied to the qmp branch, thanks.
Quoted 18 lines
--- monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)monitor.c +2
-1@@ -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);