Mesa (main): venus: silence a build warning

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 15 20:00:09 UTC 2021


Module: Mesa
Branch: main
Commit: d249cff1e70dd239137804ebf143029de9e33718
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d249cff1e70dd239137804ebf143029de9e33718

Author: Yiwei Zhang <zzyiwei at chromium.org>
Date:   Tue Jun 15 16:33:29 2021 +0000

venus: silence a build warning

Address -Wsometimes-uninitialized

Signed-off-by: Yiwei Zhang <zzyiwei at chromium.org>
Reviewed-by: Chia-I Wu <olvaffe at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11342>

---

 src/virtio/vulkan/vn_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/virtio/vulkan/vn_device.c b/src/virtio/vulkan/vn_device.c
index 206675f6adf..ea8a52bf1a2 100644
--- a/src/virtio/vulkan/vn_device.c
+++ b/src/virtio/vulkan/vn_device.c
@@ -579,7 +579,7 @@ void
 vn_instance_submit_command(struct vn_instance *instance,
                            struct vn_instance_submit_command *submit)
 {
-   void *reply_ptr;
+   void *reply_ptr = NULL;
    submit->reply_shmem = NULL;
 
    mtx_lock(&instance->ring.mutex);



More information about the mesa-commit mailing list