From 0c298c1bb2181fc90f92ee9701457d62ef8fd010 Mon Sep 17 00:00:00 2001 From: Yonggang Luo Date: Sat, 3 Jun 2023 20:55:23 +0800 Subject: [PATCH] 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 Signed-off-by: Yonggang Luo Part-of: --- 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[];