diff options
-rw-r--r-- | lib.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |