mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Silence compiler warning in json test case
This avoids error: zero-length gnu_printf format string Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
7af72c24ae
commit
e7a06af838
1 changed files with 3 additions and 1 deletions
|
@ -639,7 +639,9 @@ END_TEST
|
||||||
|
|
||||||
START_TEST(empty_input)
|
START_TEST(empty_input)
|
||||||
{
|
{
|
||||||
QObject *obj = qobject_from_json("");
|
const char *empty = "";
|
||||||
|
|
||||||
|
QObject *obj = qobject_from_json(empty);
|
||||||
fail_unless(obj == NULL);
|
fail_unless(obj == NULL);
|
||||||
}
|
}
|
||||||
END_TEST
|
END_TEST
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue