From: Gary Lockyer Date: Thu, 14 Aug 2025 21:33:24 +0000 (+1200) Subject: third_party:quic Fix compilation with clang-20 X-Git-Tag: samba-4.23.0rc2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e69828e8de5dd68f0e3694430bd7893b0cf672fb;p=thirdparty%2Fsamba.git third_party:quic Fix compilation with clang-20 Add -Wno-error=format-nonliteral so that quic builds with clang 20 ../../third_party/quic/libquic/handshake.c:106:35: error: format string is not a string literal [-Werror,-Wformat-nonliteral] 106 | rc = vsnprintf(msg, sizeof(msg), fmt, arg); | ^~~ ../../third_party/quic/libquic/handshake.c:135:35: error: format string is not a string literal [-Werror,-Wformat-nonliteral] 135 | rc = vsnprintf(msg, sizeof(msg), fmt, arg); | ^~~ ../../third_party/quic/libquic/handshake.c:164:35: error: format string is not a string literal [-Werror,-Wformat-nonliteral] 164 | rc = vsnprintf(msg, sizeof(msg), fmt, arg); | ^~~ BUG: https://bugzilla.samba.org/show_bug.cgi?id=15896 Signed-off-by: Gary Lockyer Reviewed-by: Stefan Metzmacher (cherry picked from commit de7932ea8d12348208f50f7b050b826d236ea597) --- diff --git a/third_party/quic/wscript b/third_party/quic/wscript index ab5cceab70b..6ad6096e476 100644 --- a/third_party/quic/wscript +++ b/third_party/quic/wscript @@ -42,6 +42,9 @@ def configure(conf): conf.ADD_NAMED_CFLAGS('LIBQUIC_UNPICKY_CFLAGS', '-Wno-error=cast-qual', testflags=True) + conf.ADD_NAMED_CFLAGS('LIBQUIC_UNPICKY_CFLAGS', + '-Wno-error=format-nonliteral', + testflags=True) conf.DEFINE('HAVE_LIBQUIC', '1') return