Module: Mesa
Branch: master
Commit: e1a58ae7c464bc25c24efcbbbcd31c5919aae661
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1a58ae7c464bc25c24efcbbbcd31c5919aae661

Author: Kristian H. Kristensen <[email protected]>
Date:   Tue Jul 28 21:10:57 2020 -0700

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6112>

---

 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[];

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to