Mesa (master): mapi/test: Change type to unsigned for offset
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Aug 5 18:25:46 UTC 2020
Module: Mesa
Branch: master
Commit: e1a58ae7c464bc25c24efcbbbcd31c5919aae661
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e1a58ae7c464bc25c24efcbbbcd31c5919aae661
Author: Kristian H. Kristensen <hoegsberg at google.com>
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 <eric at engestrom.ch>
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[];
More information about the mesa-commit
mailing list