diff options
-rw-r--r-- | src/xz/message.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xz/message.c b/src/xz/message.c index da90420f..45cc6a1f 100644 --- a/src/xz/message.c +++ b/src/xz/message.c @@ -723,7 +723,16 @@ vmessage(enum message_verbosity v, const char *fmt, va_list ap) // This is a translatable string because French needs // a space before a colon. fprintf(stderr, _("%s: "), progname); + +#ifdef __clang__ +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wformat-nonliteral" +#endif vfprintf(stderr, fmt, ap); +#ifdef __clang__ +# pragma GCC diagnostic pop +#endif + fputc('\n', stderr); signals_unblock(); |