summaryrefslogtreecommitdiffstats
path: root/src/gbm
diff options
context:
space:
mode:
authorRhys Kidd <rhyskidd@gmail.com>2015-08-06 16:34:06 +1000
committerMatt Turner <mattst88@gmail.com>2015-08-18 11:34:43 -0700
commit1d8c6949285dc59e53c6145d5b93b6549981711a (patch)
treef629dc41a3934122e9ea297ff39eef5914f197b8 /src/gbm
parentf5bb5b957a1ca33015400dd2274c7b73cb0e40f4 (diff)
downloadexternal_mesa3d-1d8c6949285dc59e53c6145d5b93b6549981711a.zip
external_mesa3d-1d8c6949285dc59e53c6145d5b93b6549981711a.tar.gz
external_mesa3d-1d8c6949285dc59e53c6145d5b93b6549981711a.tar.bz2
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 <rhyskidd@gmail.com> Reviewed-by: Thomas Helland <thomashelland90@gmail.com>
Diffstat (limited to 'src/gbm')
-rw-r--r--src/gbm/main/backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gbm/main/backend.c b/src/gbm/main/backend.c
index 4929d73..37ec9c1 100644
--- a/src/gbm/main/backend.c
+++ b/src/gbm/main/backend.c
@@ -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");