mirror of
https://git.tukaani.org/xz.git
synced 2025-03-03 07:00:53 +00:00
tuklib_mbstr_wrap: Silence a warning from Clang
Fixes: ca529c3f41a4a19a59e2e252e6dd9255f130c634
This commit is contained in:
parent
16c9796ef9
commit
5794cda064
@ -254,7 +254,16 @@ tuklib_wrapf(FILE *stream, const struct tuklib_wrap_opt *opt,
|
||||
|
||||
#ifdef HAVE_VASPRINTF
|
||||
va_start(ap, fmt);
|
||||
|
||||
#ifdef __clang__
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
#endif
|
||||
const int n = vasprintf(&buf, fmt, ap);
|
||||
#ifdef __clang__
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
va_end(ap);
|
||||
if (n == -1)
|
||||
return TUKLIB_WRAP_ERR_FORMAT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user