Mesa (master): turnip: Silence compiler warning about uninit pipeline.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 27 20:55:22 UTC 2019


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

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Sep 19 11:08:25 2019 -0700

turnip: Silence compiler warning about uninit pipeline.

The code was fine as far as I see, but the warning was irritating.

Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>

---

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

diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c
index b77366d267a..49ce5d27108 100644
--- a/src/freedreno/vulkan/tu_pipeline.c
+++ b/src/freedreno/vulkan/tu_pipeline.c
@@ -1882,7 +1882,7 @@ tu_CreateGraphicsPipelines(VkDevice device,
       tu_pipeline_builder_init_graphics(&builder, dev, cache,
                                         &pCreateInfos[i], pAllocator);
 
-      struct tu_pipeline *pipeline;
+      struct tu_pipeline *pipeline = NULL;
       VkResult result = tu_pipeline_builder_build(&builder, &pipeline);
       tu_pipeline_builder_finish(&builder);
 




More information about the mesa-commit mailing list