From: Stefan Dösinger stefan@codeweavers.com
MSVC is too stupid to see that line 3058 will not run unless n_variants has been set together with variants in the switch statement below. --- libs/vkd3d-shader/hlsl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/hlsl.c b/libs/vkd3d-shader/hlsl.c index 5f683767..2f4b850d 100644 --- a/libs/vkd3d-shader/hlsl.c +++ b/libs/vkd3d-shader/hlsl.c @@ -3044,7 +3044,7 @@ static void declare_predefined_types(struct hlsl_ctx *ctx) for (bt = 0; bt <= HLSL_TYPE_LAST_SCALAR; ++bt) { unsigned int n_variants = 0; - const char *const *variants; + const char *const *variants = NULL;
switch (bt) {