From cb5bd43d4c5c0a3b2799fc849fcbf038942f742d Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 24 Dec 2009 07:33:24 +0000 Subject: [PATCH] warning fix from shortcircuit --- libs/video/targets/vid_3dfxsvga.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/video/targets/vid_3dfxsvga.c b/libs/video/targets/vid_3dfxsvga.c index 2fa2c6ba1..285170cad 100644 --- a/libs/video/targets/vid_3dfxsvga.c +++ b/libs/video/targets/vid_3dfxsvga.c @@ -201,7 +201,7 @@ GL_EndRendering (void) Sbar_Changed (); } -static int resolutions[][3] = { +static unsigned int resolutions[][3] = { {320, 200, GR_RESOLUTION_320x200}, {320, 240, GR_RESOLUTION_320x240}, {400, 256, GR_RESOLUTION_400x256}, @@ -253,7 +253,7 @@ static int resolutions[][3] = { #define NUM_RESOLUTIONS (sizeof (resolutions) / (sizeof (int) * 3)) static int -findres (int *width, int *height) +findres (unsigned int *width, unsigned int *height) { unsigned int i; @@ -273,7 +273,6 @@ findres (int *width, int *height) void VID_Init (unsigned char *palette) { - int i; GLint attribs[32]; GLF_Init ();