mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
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>
This commit is contained in:
parent
b5d54bd421
commit
9c3175cc15
1 changed files with 2 additions and 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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue