diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-10-18 15:43:46 -0200 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-10-18 15:43:46 -0200 |
commit | 9d955a47e38d0b479d4670b76da5235d407861a6 (patch) | |
tree | 1ac0735767b92f03b2a49f71f72034a34246b38a /qjson.h | |
parent | 89ed5c8564250d84eb3071abdcc8bba6e326901e (diff) | |
parent | afbaa7b4382faced3c364606a5e5d5389462147b (diff) |
Merge commit 'afbaa7b4382faced3c364606a5e5d5389462147b' into upstream-merge
* commit 'afbaa7b4382faced3c364606a5e5d5389462147b': (24 commits)
virtio-net: unify vhost-net start/stop
virtio: invoke set_status callback on reset
net: delay freeing peer host device
console: Avoid dereferencing NULL active_console
exec: Fix compilation error for debug code
rc4030: Fix compilation error in debug code
mipsnet: Fix compiler warning in debug code
block/vvfat: Fix compiler warning in debug code
virtio-9p: Use GCC_FMT_ATTR and fix a format warning
blockdev: Use GCC_FMT_ATTR (format checking)
Use GCC_FMT_ATTR (format checking)
Replace most gcc format attributes by macro GCC_FMT_ATTR (format checking)
slirp: Silence warning on Haiku
tap: Add stub for Haiku
nbd: Haiku has _IO() in its BSD compatibility layer
Haiku doesn't have libm
configure: Don't rely on special pthreads library
configure: Add basic support for Haiku
trace: avoid unnecessary recompilation if nothing changed
Makefile: fix config-devices.mak generation
...
Conflicts:
hw/virtio-net.c
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'qjson.h')
-rw-r--r-- | qjson.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -18,10 +18,9 @@ #include "qobject.h" #include "qstring.h" -QObject *qobject_from_json(const char *string); -QObject *qobject_from_jsonf(const char *string, ...) - __attribute__((__format__ (__printf__, 1, 2))); -QObject *qobject_from_jsonv(const char *string, va_list *ap); +QObject *qobject_from_json(const char *string) GCC_FMT_ATTR(1, 0); +QObject *qobject_from_jsonf(const char *string, ...) GCC_FMT_ATTR(1, 2); +QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0); QString *qobject_to_json(const QObject *obj); QString *qobject_to_json_pretty(const QObject *obj); |