diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2010-10-16 19:42:43 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2010-10-22 10:08:37 -0200 |
commit | e7a06af838a45be4f92e655fd4628e3351a09c98 (patch) | |
tree | 1ffa95dba93a690839c020eefc5134d5267519eb /check-qjson.c | |
parent | 7af72c24aed92bfb7ebc999ddd509c3d8c8b3f83 (diff) | |
download | qemu-e7a06af838a45be4f92e655fd4628e3351a09c98.zip qemu-e7a06af838a45be4f92e655fd4628e3351a09c98.tar.gz qemu-e7a06af838a45be4f92e655fd4628e3351a09c98.tar.bz2 |
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>
Diffstat (limited to 'check-qjson.c')
-rw-r--r-- | check-qjson.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/check-qjson.c b/check-qjson.c index 0b60e45..64fcdcb 100644 --- a/check-qjson.c +++ b/check-qjson.c @@ -639,7 +639,9 @@ END_TEST START_TEST(empty_input) { - QObject *obj = qobject_from_json(""); + const char *empty = ""; + + QObject *obj = qobject_from_json(empty); fail_unless(obj == NULL); } END_TEST |