mapi: Fixes non-constant-expression cannot be narrowed from type 'unsigned long' to 'unsigned int' in initializer list with clang

error is:
../src/mapi/glapi/tests/check_table.cpp:563:19: error: non-constant-expression cannot be narrowed from type 'unsigned long' to 'unsigned int' in initializer list [-Wc++11-narrowing]
   { "glNewList", _O(NewList) },

This is just a test and only with clang, and can be disabled by compiler option, so there is no need to back ported

Reviewed-by: Eric Engestrom <eric@igalia.com>
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23793>
This commit is contained in:
Yonggang Luo 2023-06-03 20:55:23 +08:00 committed by Marge Bot
parent e44773b6d6
commit 0c298c1bb2

View file

@ -28,7 +28,7 @@
struct name_offset {
const char *name;
unsigned int offset;
size_t offset;
};
extern const struct name_offset linux_gl_abi[];