From: Kristian H. Kristensen Date: Wed, 29 Jul 2020 04:10:57 +0000 (-0700) Subject: mapi/test: Change type to unsigned for offset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1a58ae7c464bc25c24efcbbbcd31c5919aae661;p=mesa.git 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: --- 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[];