Re: [PATCH v3] hw/block: nvme: Fix a build error in nvme_get_feature()

2021-02-10 Thread Klaus Jensen
On Feb 10 19:22, Bin Meng wrote: > From: Bin Meng > > Current QEMU HEAD nvme.c does not compile with the default GCC 5.4 > on a Ubuntu 16.04 host: > > hw/block/nvme.c:3242:9: error: ‘result’ may be used uninitialized in this > function [-Werror=maybe-uninitialized] > trace_pci_nvme_g

[PATCH v3] hw/block: nvme: Fix a build error in nvme_get_feature()

2021-02-10 Thread Bin Meng
From: Bin Meng Current QEMU HEAD nvme.c does not compile with the default GCC 5.4 on a Ubuntu 16.04 host: hw/block/nvme.c:3242:9: error: ‘result’ may be used uninitialized in this function [-Werror=maybe-uninitialized] trace_pci_nvme_getfeat_vwcache(result ? "enabled" : "disabled");