dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Emil Velikov <emil.l.velikov@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: emil.l.velikov@gmail.com
Subject: [PATCH 4/6] drmOpenDevice: silence compiler warning
Date: Thu, 29 Jan 2015 18:47:08 +0000	[thread overview]
Message-ID: <1422557230-22155-5-git-send-email-emil.l.velikov@gmail.com> (raw)
In-Reply-To: <1422557230-22155-1-git-send-email-emil.l.velikov@gmail.com>

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(-)

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);
-- 
2.1.3

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2015-01-29 18:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 18:47 [PATH 0/6] Misc build fixes Emil Velikov
2015-01-29 18:47 ` [PATCH 1/6] util: add WARN_CFLAGS, rename the c*flags vars Emil Velikov
2015-01-29 18:47 ` [PATCH 2/6] modetest: move includes into AM_CPPFLAGS Emil Velikov
2015-01-29 18:47 ` [PATCH 3/6] libdrm: fix the Android 64bit build Emil Velikov
2015-01-29 19:00   ` Stéphane Marchesin
2015-01-29 19:22     ` Emil Velikov
2015-01-29 18:47 ` Emil Velikov [this message]
2015-01-29 18:47 ` [PATCH 5/6] drmGetStats: silence compiler warning Emil Velikov
2015-01-29 18:47 ` [PATCH 6/6] android: remove duplicate libdrm in LOCAL_SHARED_LIBRARIES Emil Velikov
2015-02-06 19:42 ` [PATCH 1/2] util: add missing include <string.h> Emil Velikov
2015-02-06 19:42   ` [PATCH 2/2] util: silence pointer arithmetic warnings Emil Velikov
2015-02-06 19:54   ` [PATCH 1/2] util: add missing include <string.h> Emil Velikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1422557230-22155-5-git-send-email-emil.l.velikov@gmail.com \
    --to=emil.l.velikov@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox