diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-18 15:36:39 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-01-19 00:25:40 +0100 |
commit | 2bf92c344eb50a72d730eb27aaea208ef5539181 (patch) | |
tree | 1f284fc59dfdb3b8b27cc4e4abcff2a145614c7f /src/sds.c | |
parent | 0fce5bca6498ce007dfcd7d537c7e7c4d54cf6f6 (diff) | |
download | sds-2bf92c344eb50a72d730eb27aaea208ef5539181.tar.xz |
sds.c: Disable format-nonliteral warning around sdscatvprintf
Diffstat (limited to 'src/sds.c')
-rw-r--r-- | src/sds.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |