summaryrefslogtreecommitdiff
path: root/progs/redbook
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-11-10 17:23:02 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-11-10 17:23:02 +0000
commitdb6aa58267cad3f502f03ab80b9deb6b75320a91 (patch)
tree52d7cc352e2e7190b19b79ffdfb21c704b67dff1 /progs/redbook
parent8e3366fda795797d92afb6877cd280cf96a6d4e7 (diff)
patched to silence compiler warnings (Martin Lindhe)
Diffstat (limited to 'progs/redbook')
-rw-r--r--progs/redbook/picksquare.c2
-rw-r--r--progs/redbook/wrap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/progs/redbook/picksquare.c b/progs/redbook/picksquare.c
index 0a12aa0fac..b68117c278 100644
--- a/progs/redbook/picksquare.c
+++ b/progs/redbook/picksquare.c
@@ -88,7 +88,7 @@ void drawSquares(GLenum mode)
void processHits (GLint hits, GLuint buffer[])
{
unsigned int i, j;
- GLuint ii, jj, names, *ptr;
+ GLuint ii = 0, jj = 0, names, *ptr;
printf ("hits = %d\n", hits);
ptr = (GLuint *) buffer;
diff --git a/progs/redbook/wrap.c b/progs/redbook/wrap.c
index c67e04a7f3..f9a1f162ab 100644
--- a/progs/redbook/wrap.c
+++ b/progs/redbook/wrap.c
@@ -65,7 +65,7 @@ void makeCheckImage(void)
for (i = 0; i < checkImageHeight; i++) {
for (j = 0; j < checkImageWidth; j++) {
- c = ((((i&0x8)==0)^((j&0x8))==0))*255;
+ c = (((i&0x8)==0)^((j&0x8)==0))*255;
checkImage[i][j][0] = (GLubyte) c;
checkImage[i][j][1] = (GLubyte) c;
checkImage[i][j][2] = (GLubyte) c;