On 4/26/24 18:35, Ilya Maximets wrote: > Cirrus CI is broken on FreeBSD 13.3 due to clang version update. > It now complains about snprintf truncation the same way GCC does: > > tests/test-util.c:1129:16: error: 'snprintf' will always be truncated; > specified size is 5, but format string expands to at least 6 > [-Werror,-Wformat-truncation] > > 1129 | ovs_assert(snprintf(s, 5, "abcde") == 5); > | ^ > > Clang 17 on FreeBSD 14.0 works fine, but new Clang 18.1.4 on 13.3 > fails to build. > > Fix that by disabling Clang diagnostic the same way as we do for GCC. > > Unfortunately, the pragma's are compiler-specific, so cannot be > combined, AFAIK. > > Signed-off-by: Ilya Maximets <[email protected]> > ---
Recheck-request: github-robot _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
