Fix issues found by static analysis
authorMatteo Franchin <matteo.franchin@arm.com>
Mon, 4 Jul 2022 10:11:51 +0000 (11:11 +0100)
committerMatteo Franchin <matteo.franchin@arm.com>
Thu, 21 Jul 2022 18:05:53 +0000 (19:05 +0100)
commit425b885f6e607eecd5ccb4b7f15bf77592dbe267
tree02ecf9d15ed972c014ff6c3b3462d82bb6f65392
parent91583f1af270f19b40d19f9423e98a7f3d745e01
Fix issues found by static analysis

All of the issues that this patch fixes should not occur in practice,
but make the code a bit more robust. For example, this patch
default-initializes structures passed to Vulkan for initialization.
Normally, initialization should be done by the Vulkan entrypoint,
so it should be fine not initializing the structure as long as the
Vulkan API entrypoint exits with success status. It is still a good
idea to default-initialize anyway to make the behaviour deterministic
in cases where something is wrong in the system. All changes made
should have a negligible impact on performance for typical
applications.

Change-Id: Ia606ad2d3ea1627f9dfef0cadf93c7468ab568d8
Signed-off-by: Matteo Franchin <matteo.franchin@arm.com>
layer/layer.cpp
layer/swapchain_api.cpp
util/timed_semaphore.cpp
wsi/headless/swapchain.cpp
wsi/surface_properties.cpp
wsi/wsi_factory.cpp