mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 11:20:11 +01:00
vk/util: suppress warning about out-of-enum android value
src/vulkan/util/vk_enum_to_str.c: In function ‘vk_structure_type_size’:
src/vulkan/util/vk_enum_to_str.c:3335:9: warning: case value ‘1000010000’ not in enumerated type ‘VkStructureType’ {aka ‘const enum VkStructureType’} [-Wswitch]
case VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID: return sizeof(VkNativeBufferANDROID);
^~~~
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
25afbb04c2
commit
8d386e6eef
1 changed files with 4 additions and 2 deletions
|
|
@ -90,6 +90,8 @@ C_TEMPLATE = Template(textwrap.dedent(u"""\
|
||||||
|
|
||||||
size_t vk_structure_type_size(const struct VkBaseInStructure *item)
|
size_t vk_structure_type_size(const struct VkBaseInStructure *item)
|
||||||
{
|
{
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wswitch"
|
||||||
switch(item->sType) {
|
switch(item->sType) {
|
||||||
% for struct in structs:
|
% for struct in structs:
|
||||||
% if struct.extension is not None and struct.extension.define is not None:
|
% if struct.extension is not None and struct.extension.define is not None:
|
||||||
|
|
@ -100,9 +102,9 @@ C_TEMPLATE = Template(textwrap.dedent(u"""\
|
||||||
case ${struct.stype}: return sizeof(${struct.name});
|
case ${struct.stype}: return sizeof(${struct.name});
|
||||||
% endif
|
% endif
|
||||||
%endfor
|
%endfor
|
||||||
default:
|
|
||||||
unreachable("Undefined struct type.");
|
|
||||||
}
|
}
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
unreachable("Undefined struct type.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void vk_load_instance_commands(VkInstance instance,
|
void vk_load_instance_commands(VkInstance instance,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue