microsoft/clc: fix compiler warning on uninitiailzed variable use

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9156>
This commit is contained in:
Lionel Landwerlin 2021-09-29 19:52:41 +03:00 committed by Marge Bot
parent 1d7a5196b1
commit 2bc4650b45

View file

@ -643,7 +643,7 @@ clc_spirv_get_kernels_info(const struct clc_binary *spvbin,
const struct clc_logger *logger)
{
struct clc_kernel_info *kernels;
struct clc_parsed_spec_constant *spec_constants;
struct clc_parsed_spec_constant *spec_constants = NULL;
SPIRVKernelParser parser;