tools/xenalyze: Fix -Werror=nonnull failure

GCC 15.2 with Alpine Linux 3.24 fails with -Werror=nonnull, complaining that
we're calling bzero(NULL, 128).

This is a legitimate diagnostic.  xenalyze has it's own error() function
shadowing the standard library one, and can in principle return when p is
NULL.

Extend the check in error() with ERR_MAX_TOLERABLE to short circuit the
variable tolerance check.

Suggested-by: Anthony PERARD <anthony.perard@vates.tech>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
This commit is contained in:
Andrew Cooper committed 2026-06-15 18:04:20 +01:00
1 parent efcb4c5e2f
commit 1a485996d9
1 file changed
+1 -1
+1 -1
View File
@@ -8767,7 +8767,7 @@ void dump_raw(const char * s, struct record_info *ri)
void error(enum error_level l, struct record_info *ri)
{
if ( l > opt.tolerance )
if ( l > ERR_MAX_TOLERABLE || l > opt.tolerance )
{
if ( ri )
dump_generic(warn, ri);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.