Getting rid of the default case makes the compiler warn if we are missing
cases. While we're here, we also add the one missing case.
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
case SpvDecorationIndex:
case SpvDecorationBinding:
case SpvDecorationDescriptorSet:
+ case SpvDecorationLinkageAttributes:
case SpvDecorationNoContraction:
case SpvDecorationInputAttachmentIndex:
vtn_warn("Decoration not allowed on struct members: %s",
vtn_warn("Decoraiton only allowed for CL-style kernels: %s",
spirv_decoration_to_string(dec->decoration));
break;
-
- default:
- unreachable("Unhandled member decoration");
}
}