From: Kenneth Graunke Date: Wed, 11 Jan 2017 23:16:11 +0000 (-0800) Subject: spirv: Shut up unhandled enumeration value warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c17b2f572449e66a035ffb7be9dc833f6d80aac5;p=mesa.git spirv: Shut up unhandled enumeration value warnings. We don't want to do anything for the other cases. Signed-off-by: Kenneth Graunke --- diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 3ecb54f32db..1cc1402f72d 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1078,6 +1078,8 @@ apply_var_decoration(struct vtn_builder *b, nir_variable *nir_var, case SpvBuiltInFragCoord: nir_var->data.pixel_center_integer = b->pixel_center_integer; break; + default: + break; } }