From b60c337d1a65bae3426a8883a0e84dbff6ab08ad Mon Sep 17 00:00:00 2001 From: egdaniel Date: Fri, 1 Apr 2016 08:47:35 -0700 Subject: Initialize variable to appease compiler warning TBR=bsalomon@google.com BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1854773002 Review URL: https://codereview.chromium.org/1854773002 --- src/gpu/vk/GrVkPipelineStateBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gpu/vk/GrVkPipelineStateBuilder.cpp b/src/gpu/vk/GrVkPipelineStateBuilder.cpp index 00e81d4b9c..6d46ea91b5 100644 --- a/src/gpu/vk/GrVkPipelineStateBuilder.cpp +++ b/src/gpu/vk/GrVkPipelineStateBuilder.cpp @@ -99,7 +99,7 @@ bool GrVkPipelineStateBuilder::CreateVkShaderModule(const GrVkGpu* gpu, moduleCreateInfo.pNext = nullptr; moduleCreateInfo.flags = 0; - shaderc_compilation_result_t result; + shaderc_compilation_result_t result = nullptr; if (gpu->vkCaps().canUseGLSLForShaderModule()) { moduleCreateInfo.codeSize = strlen(shaderString.c_str()); -- cgit v1.2.3