aboutsummaryrefslogtreecommitdiffstats
path: root/src/sds.c
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-01-18 15:36:39 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-01-19 00:25:40 +0100
commit2bf92c344eb50a72d730eb27aaea208ef5539181 (patch)
tree1f284fc59dfdb3b8b27cc4e4abcff2a145614c7f /src/sds.c
parent0fce5bca6498ce007dfcd7d537c7e7c4d54cf6f6 (diff)
downloadsds-2bf92c344eb50a72d730eb27aaea208ef5539181.tar.xz
sds.c: Disable format-nonliteral warning around sdscatvprintf
Diffstat (limited to 'src/sds.c')
-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.