aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sds.c2
1 files changed, 2 insertions, 0 deletions
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.