Message ID | 1422557230-22155-6-git-send-email-emil.l.velikov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/xf86drm.c b/xf86drm.c index b41c1d8..cc79ab6 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -2213,7 +2213,7 @@ int drmGetClient(int fd, int idx, int *auth, int *pid, int *uid, int drmGetStats(int fd, drmStatsT *stats) { drm_stats_t s; - int i; + unsigned int i; if (drmIoctl(fd, DRM_IOCTL_GET_STATS, &s)) return -errno;
drm_stats_t::count is of type unsigned long, while i is an int. Make the latter an unsigned int. Spotted as -Wsign-compare warning while building under Android 5. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)