]> git.ipfire.org Git - thirdparty/samba.git/commit
third_party:quic Fix compilation with clang-20
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 14 Aug 2025 21:33:24 +0000 (09:33 +1200)
committerJule Anger <janger@samba.org>
Fri, 22 Aug 2025 12:07:10 +0000 (12:07 +0000)
commite69828e8de5dd68f0e3694430bd7893b0cf672fb
tree7b255851882caeaa52d753c8feeda5a3adf8e88c
parentd43c632b632991afc04871e8d68943e1f4ff7471
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 <gary@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit de7932ea8d12348208f50f7b050b826d236ea597)
third_party/quic/wscript