summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib.c b/lib.c
index dbbb028..2dba05b 100644
--- a/lib.c
+++ b/lib.c
@@ -1433,6 +1433,8 @@ ut_printf_common(struct ut_state *s, uint32_t off, struct json_object *args, cha
*fp++ = (t == json_type_string) ? 's' : *p;
*fp = 0;
+#pragma GCC diagnostic ignored "-Wformat-security"
+
switch (t) {
case json_type_int: sprintf_append(res, &len, sfmt, arg.n); break;
case json_type_double: sprintf_append(res, &len, sfmt, arg.d); break;
@@ -1440,6 +1442,8 @@ ut_printf_common(struct ut_state *s, uint32_t off, struct json_object *args, cha
default: sprintf_append(res, &len, sfmt); break;
}
+#pragma GCC diagnostic pop
+
last = p + 1;
next: