From 2bf92c344eb50a72d730eb27aaea208ef5539181 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 18 Jan 2015 15:36:39 +0100 Subject: sds.c: Disable format-nonliteral warning around sdscatvprintf --- src/sds.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sds.c b/src/sds.c index f3396c9..0e62f31 100644 --- a/src/sds.c +++ b/src/sds.c @@ -292,6 +292,7 @@ sds sdscpy(sds s, const char *t) { } /* Like sdscatpritf() but gets va_list instead of being variadic. */ +#pragma GCC diagnostic ignored "-Wformat-nonliteral" sds sdscatvprintf(sds s, const char *fmt, va_list ap) { va_list cpy; char *buf, *t; @@ -314,6 +315,7 @@ sds sdscatvprintf(sds s, const char *fmt, va_list ap) { free(buf); return t; } +#pragma GCC diagnostic warning "-Wformat-nonliteral" /* Append to the sds string 's' a string obtained using printf-alike format * specifier. -- cgit v1.2.3-70-g09d2