libqtest: Enable compile-time format string checking
commite3dc93be1ac46fdb58142383319b783b4c4ce8ca
authorMarkus Armbruster <armbru@redhat.com>
Mon, 6 Aug 2018 06:53:42 +0000 (6 08:53 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 16 Aug 2018 06:42:06 +0000 (16 08:42 +0200)
treead82a627dd01ad02b389d6b79cb620b5fb54c594
parentc44a56d8ba1c13fea5c9d045ac178638807079cc
libqtest: Enable compile-time format string checking

qtest_qmp() & friends pass their format string and variable arguments
to qobject_from_vjsonf_nofail().  Unlike qobject_from_jsonv(), they
aren't decorated with GCC_FMT_ATTR().  Fix that to get compile-time
format string checking.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20180806065344.7103-22-armbru@redhat.com>
tests/libqtest.h