Commit 1d8c6949 authored by Rhys Kidd's avatar Rhys Kidd Committed by Matt Turner

mesa/gbm: Resolve GCC sign-compare warning.

mesa/src/gbm/main/backend.c: In function 'find_backend':
mesa/src/gbm/main/backend.c:70:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i = 0; i < ARRAY_SIZE(backends); ++i) {
                  ^
mesa/src/gbm/main/backend.c: In function '_gbm_create_device':
mesa/src/gbm/main/backend.c:95:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for (i = 0; i < ARRAY_SIZE(backends) && dev == NULL; ++i) {
                  ^
Signed-off-by: Rhys Kidd's avatarRhys Kidd <rhyskidd@gmail.com>
Reviewed-by: Thomas Helland's avatarThomas Helland <thomashelland90@gmail.com>
parent f5bb5b95
......@@ -65,7 +65,7 @@ static const struct backend_desc *
find_backend(const char *name)
{
const struct backend_desc *backend = NULL;
int i;
unsigned i;
for (i = 0; i < ARRAY_SIZE(backends); ++i) {
if (strcmp(backends[i].name, name) == 0) {
......@@ -82,7 +82,7 @@ _gbm_create_device(int fd)
{
const struct gbm_backend *backend = NULL;
struct gbm_device *dev = NULL;
int i;
unsigned i;
const char *b;
b = getenv("GBM_BACKEND");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment