aboutsummaryrefslogtreecommitdiff
path: root/softmmu
diff options
context:
space:
mode:
authorMiroslav Rezanina <mrezanin@redhat.com>2021-03-15 11:13:52 +0100
committerCornelia Huck <cohuck@redhat.com>2021-03-15 15:47:18 +0100
commit5793f5aafb05dae30e9dcb57d0d1c8f1a9633f6d (patch)
tree6072ff45d66c89b82ac1044a596c749c15b88150 /softmmu
parent1a3c443c43e81e32a05d6995039e0f356b8f60cb (diff)
downloadqemu-5793f5aafb05dae30e9dcb57d0d1c8f1a9633f6d.zip
qemu-5793f5aafb05dae30e9dcb57d0d1c8f1a9633f6d.tar.gz
qemu-5793f5aafb05dae30e9dcb57d0d1c8f1a9633f6d.tar.bz2
s390x/pci: Add missing initialization for g_autofree variables
When declaring g_autofree variable without initialization, compiler will raise "may be used uninitialized in this function" warning due to automatic free handling. This is mentioned in docs/devel/style.rst (quote from section "Automatic memory deallocation"): * Variables declared with g_auto* MUST always be initialized, otherwise the cleanup function will use uninitialized stack memory Add initialization for these declarations to prevent the warning and comply with coding style. Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Fixes: cd7498d07fbb ("s390x/pci: Add routine to get the vfio dma available count") Fixes: 1e7552ff5c34 ("s390x/pci: get zPCI function info from host") Reviewed-by: Thomas Huth <thuth@redhat.com> Tested-by: Matthew Rosato <mjrosato@linux.ibm.com> Message-Id: <20210315101352.152888-1-mrezanin@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'softmmu')
0 files changed, 0 insertions, 0 deletions