summaryrefslogtreecommitdiff
path: root/src/glut/glx/glut_gamemode.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-11-10 17:23:02 +0000
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:03:29 +0100
commitc3593314e9daa2bf08736271278aaf3a3bb07956 (patch)
treeb0d65c5f7c9d6c4f4d3675fef3bf0c999e9aa943 /src/glut/glx/glut_gamemode.c
parent3d8b8650728d379ef3460aa56b8581e4f15e5b5f (diff)
downloadglut-c3593314e9daa2bf08736271278aaf3a3bb07956.tar.gz
patched to silence compiler warnings (Martin Lindhe)
Diffstat (limited to 'src/glut/glx/glut_gamemode.c')
-rw-r--r--src/glut/glx/glut_gamemode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glut/glx/glut_gamemode.c b/src/glut/glx/glut_gamemode.c
index 004f325..729711d 100644
--- a/src/glut/glx/glut_gamemode.c
+++ b/src/glut/glx/glut_gamemode.c
@@ -162,7 +162,7 @@ findMatch(DisplayMode * dmodes, int ndmodes,
{
DisplayMode *found;
int *bestScore, *thisScore;
- int i, j, numok, result, worse, better;
+ int i, j, numok, result = 0, worse, better;
found = NULL;
numok = 1; /* "num" capability is indexed from 1,
@@ -386,7 +386,7 @@ static int
parseCriteria(char *word, Criterion * criterion)
{
char *cstr, *vstr, *response;
- int comparator, value;
+ int comparator, value = 0;
cstr = strpbrk(word, "=><!~");
if (cstr) {