size_t vk_structure_type_size(const struct VkBaseInStructure *item)
{
+ #pragma GCC diagnostic push
+ #pragma GCC diagnostic ignored "-Wswitch"
switch(item->sType) {
% for struct in structs:
% if struct.extension is not None and struct.extension.define is not None:
case ${struct.stype}: return sizeof(${struct.name});
% endif
%endfor
- default:
- unreachable("Undefined struct type.");
}
+ #pragma GCC diagnostic pop
+ unreachable("Undefined struct type.");
}
void vk_load_instance_commands(VkInstance instance,