mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-21 21:25:25 +00:00
qemumonitortestutils: Fix G_GNUC_PRINTF annotation of qemuMonitorTestAddErrorResponse()
The qemuMonitorTestAddErrorResponse() function is a printf-like function. But the annotation was mistakenly done in .c file instead of corresponding .h file rendering the annotation ineffective. Move the annotation to the header file. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
86e511fafb
commit
7813d31446
@ -172,7 +172,7 @@ qemuMonitorTestAddInvalidCommandResponse(qemuMonitorTest *test,
|
||||
}
|
||||
|
||||
|
||||
int G_GNUC_PRINTF(2, 3)
|
||||
int
|
||||
qemuMonitorTestAddErrorResponse(qemuMonitorTest *test, const char *errmsg, ...)
|
||||
{
|
||||
va_list msgargs;
|
||||
|
@ -52,7 +52,8 @@ qemuMonitorTestItemGetPrivateData(qemuMonitorTestItem *item);
|
||||
int
|
||||
qemuMonitorTestAddErrorResponse(qemuMonitorTest *test,
|
||||
const char *errmsg,
|
||||
...);
|
||||
...)
|
||||
G_GNUC_PRINTF(2, 3);
|
||||
|
||||
void
|
||||
qemuMonitorTestAllowUnusedCommands(qemuMonitorTest *test);
|
||||
|
Loading…
Reference in New Issue
Block a user