mirror of https://github.com/proxmox/mirror_qemu
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>master
parent
b5d54bd421
commit
9c3175cc15
|
@ -3171,7 +3171,8 @@ static const MonitorDef monitor_defs[] = {
|
||||||
{ NULL },
|
{ 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_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
|
|
Loading…
Reference in New Issue