Module: Mesa Branch: main Commit: 0c298c1bb2181fc90f92ee9701457d62ef8fd010 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c298c1bb2181fc90f92ee9701457d62ef8fd010
Author: Yonggang Luo <[email protected]> Date: Sat Jun 3 20:55:23 2023 +0800 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 <[email protected]> Signed-off-by: Yonggang Luo <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23793> --- src/mapi/glapi/tests/check_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapi/glapi/tests/check_table.cpp b/src/mapi/glapi/tests/check_table.cpp index 5b9d1e7c4a9..52fa94d01a6 100644 --- a/src/mapi/glapi/tests/check_table.cpp +++ b/src/mapi/glapi/tests/check_table.cpp @@ -28,7 +28,7 @@ struct name_offset { const char *name; - unsigned int offset; + size_t offset; }; extern const struct name_offset linux_gl_abi[];
