summaryrefslogtreecommitdiff
path: root/qjson.h
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2010-09-23 21:28:05 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-10-03 06:34:51 +0000
commit8b7968f7c4ac8c07cad6a1a0891d38cf239a2839 (patch)
tree4a061bb5e911a88f914c106afd2a8c9ba9127835 /qjson.h
parente5924d8980e0bd027f2f12fa702ec1c555538230 (diff)
Use GCC_FMT_ATTR (format checking)
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qjson.h')
-rw-r--r--qjson.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/qjson.h b/qjson.h
index 7eef35735..70d0afba5 100644
--- a/qjson.h
+++ b/qjson.h
@@ -18,9 +18,9 @@
#include "qobject.h"
#include "qstring.h"
-QObject *qobject_from_json(const char *string);
+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);
+QObject *qobject_from_jsonv(const char *string, va_list *ap) GCC_FMT_ATTR(1, 0);
QString *qobject_to_json(const QObject *obj);