From e1a58ae7c464bc25c24efcbbbcd31c5919aae661 Mon Sep 17 00:00:00 2001 From: "Kristian H. Kristensen" Date: Tue, 28 Jul 2020 21:10:57 -0700 Subject: [PATCH] mapi/test: Change type to unsigned for offset Quiets this warning: ../../master/src/mapi/glapi/tests/check_table.cpp:576:20: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing] { "glColor3dv", _O(Color3dv) }, ^~~~~~~~~~~~ Reviewed-by: Eric Engestrom 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 761f2a24e09..82da3f2ed90 100644 --- a/src/mapi/glapi/tests/check_table.cpp +++ b/src/mapi/glapi/tests/check_table.cpp @@ -29,7 +29,7 @@ struct name_offset { const char *name; - int offset; + unsigned int offset; }; extern const struct name_offset linux_gl_abi[]; -- 2.30.2