From: przanoni@gmail.com Subject: [gpu-tools 1/7] testdisplay: fix compiler warnings Date: Thu, 15 Sep 2011 15:10:52 -0300 Message-ID: <1316110252-18947-1-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-yw0-f49.google.com (mail-yw0-f49.google.com [209.85.213.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 4EB9F9F0F2 for ; Thu, 15 Sep 2011 11:11:45 -0700 (PDT) Received: by ywf9 with SMTP id 9so2666804ywf.36 for ; Thu, 15 Sep 2011 11:11:44 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org Cc: Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org From: Paulo Zanoni testdisplay.c:117:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:125:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:145:1: warning: comparison between signed and unsigned integer expressions testdisplay.c:1060:16: warning: comparison between signed and unsigned integer expressions Signed-off-by: Paulo Zanoni --- tests/testdisplay.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 1d85acd..94c6e74 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -98,7 +98,7 @@ struct type_name { #define type_name_fn(res) \ static char * res##_str(int type) { \ - int i; \ + unsigned int i; \ for (i = 0; i < ARRAY_SIZE(res##_names); i++) { \ if (res##_names[i].type == type) \ return res##_names[i].name; \ @@ -1010,7 +1010,7 @@ int main(int argc, char **argv) int c; int encoders = 0, connectors = 0, crtcs = 0, framebuffers = 0; char *modules[] = { "i915" }; - int i; + unsigned int i; struct udev *u; int ret = 0; GIOChannel *udevchannel, *stdinchannel; -- 1.7.4.1