qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] plugins: fix -Werror=maybe-uninitialized false-positive


From: Alex Bennée
Subject: Re: [PATCH] plugins: fix -Werror=maybe-uninitialized false-positive
Date: Tue, 28 Jan 2025 16:03:19 +0000
User-agent: mu4e 1.12.8; emacs 29.4

marcandre.lureau@redhat.com writes:

> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> ../contrib/plugins/cache.c:638:9: error: ‘l2_cache’ may be used uninitialized 
> [-Werror=maybe-uninitialized]
>   638 |         append_stats_line(rep, l1_dmem_accesses, l1_dmisses,
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Is a false-positive, since cores > 1, so the variable is set in the
> above loop.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>

Queued to plugins/next, thanks.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro



reply via email to

[Prev in Thread] Current Thread [Next in Thread]