* [PATCH libdrm] xf86drm: fix sign-compare warning
@ 2016-12-11 18:03 Grazvydas Ignotas
2016-12-12 14:07 ` Emil Velikov
0 siblings, 1 reply; 2+ messages in thread
From: Grazvydas Ignotas @ 2016-12-11 18:03 UTC (permalink / raw)
To: dri-devel
xf86drm.c:3601:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (expected < sizeof(match)) {
^
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
---
xf86drm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xf86drm.c b/xf86drm.c
index 2e8c956..b5eeeb0 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -3582,7 +3582,7 @@ char *drmGetDeviceNameFromFd2(int fd)
FILE *f;
char buf[512];
static const char match[9] = "\nDEVNAME=";
- int expected = 1;
+ size_t expected = 1;
if (fstat(fd, &sbuf))
--
2.7.4
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH libdrm] xf86drm: fix sign-compare warning
2016-12-11 18:03 [PATCH libdrm] xf86drm: fix sign-compare warning Grazvydas Ignotas
@ 2016-12-12 14:07 ` Emil Velikov
0 siblings, 0 replies; 2+ messages in thread
From: Emil Velikov @ 2016-12-12 14:07 UTC (permalink / raw)
To: Grazvydas Ignotas; +Cc: ML dri-devel
On 11 December 2016 at 18:03, Grazvydas Ignotas <notasas@gmail.com> wrote:
> xf86drm.c:3601:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
> while (expected < sizeof(match)) {
> ^
>
Pushed to master.
Thanks !
Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-12 14:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-11 18:03 [PATCH libdrm] xf86drm: fix sign-compare warning Grazvydas Ignotas
2016-12-12 14:07 ` Emil Velikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox