Message ID | 1422557230-22155-5-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 345325a..b41c1d8 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -394,7 +394,7 @@ wait_for_udev: /* Check if the device node is not what we expect it to be, and recreate it * and try again if so. */ - if (st.st_rdev != dev) { + if (st.st_rdev != (dev_t)dev) { if (!isroot) return DRM_ERR_NOT_ROOT; remove(buf);
Under 64bit Android the compiler throws a -Wsign-compare warning. Typecast the variable dev to silence the build. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)