[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 00/19] -Werror=maybe-uninitialized fixes
From: |
Eric Blake |
Subject: |
Re: [PATCH 00/19] -Werror=maybe-uninitialized fixes |
Date: |
Thu, 28 Mar 2024 09:31:31 -0500 |
User-agent: |
NeoMutt/20240201 |
On Thu, Mar 28, 2024 at 02:20:33PM +0400, marcandre.lureau@redhat.com wrote:
> From: Marc-André Lureau <marcandre.lureau@redhat.com>
>
> Hi,
>
> Depending on -Doptimization=<value>, GCC (13.2.1 here) produces different
> maybe-uninitialized warnings:
> - g: produces -Werror=maybe-uninitialized errors
> - 0: clean build
> - 1: produces -Werror=maybe-uninitialized errors
> - 2: clean build
> - 3: produces few -Werror=maybe-uninitialized errors
> - s: produces -Werror=maybe-uninitialized errors
>
> Most are false-positive, because prior LOCK_GUARD should guarantee an
> initialization path. Few of them are a bit trickier. Finally, I found
> a potential related memory leak.
>
> thanks
Couple of subject lines are inconsistent; I suggest:
>
> Marc-André Lureau (19):
> util/coroutine: fix -Werror=maybe-uninitialized false-positive
> util/timer: with -Werror=maybe-uninitialized false-positive
s/with/fix/
> hw/qxl: fix -Werror=maybe-uninitialized false-positives
> nbd: with -Werror=maybe-uninitialized false-positive
s/with/fix/
> block/mirror: fix -Werror=maybe-uninitialized false-positive
> block/stream: fix -Werror=maybe-uninitialized false-positives
> hw/ahci: fix -Werror=maybe-uninitialized false-positive
> hw/vhost-scsi: fix -Werror=maybe-uninitialized
> hw/sdhci: fix -Werror=maybe-uninitialized false-positive
> hw/rdma: fix -Werror=maybe-uninitialized false-positive
> migration/block: fix -Werror=maybe-uninitialized false-positive
> migration: fix -Werror=maybe-uninitialized false-positives
> hw/virtio-blk: fix -Werror=maybe-uninitialized false-positive
> plugins: fix -Werror=maybe-uninitialized false-positive
> migration: fix -Werror=maybe-uninitialized false-positive
> tests: fix -Werror=maybe-uninitialized
> hw/nvme: fix -Werror=maybe-uninitialized
> hw/virtio: fix -Werror=maybe-uninitialized
> RFC: hw/virtio: a potential leak fix
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc.
Virtualization: qemu.org | libguestfs.org
- Re: [PATCH 12/19] migration: fix -Werror=maybe-uninitialized false-positives, (continued)
- [PATCH 13/19] hw/virtio-blk: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/03/28
- [PATCH 14/19] plugins: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/03/28
- [PATCH 15/19] migration: fix -Werror=maybe-uninitialized false-positive, marcandre . lureau, 2024/03/28
- [PATCH 16/19] tests: fix -Werror=maybe-uninitialized, marcandre . lureau, 2024/03/28
- [PATCH 17/19] hw/nvme: fix -Werror=maybe-uninitialized, marcandre . lureau, 2024/03/28
- [PATCH 18/19] hw/virtio: fix -Werror=maybe-uninitialized, marcandre . lureau, 2024/03/28
- [PATCH 19/19] RFC: hw/virtio: a potential leak fix, marcandre . lureau, 2024/03/28
- Re: [PATCH 00/19] -Werror=maybe-uninitialized fixes,
Eric Blake <=