diff options
author | Eric Anholt <eric@anholt.net> | 2009-04-30 14:17:37 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-04-30 14:36:29 -0700 |
commit | d930dc2cbec04b44efc06adcfe70fea395fa17d5 (patch) | |
tree | a4b41fdfc4e01dffd90c12104f0c2f1d714efdc6 /tests/bugs | |
parent | aec22b40b5957c509d7e3267a67aa52e963516cf (diff) |
Warnings cleanup, resulting in a number of actual bugfixes.
Diffstat (limited to 'tests/bugs')
-rw-r--r-- | tests/bugs/fdo10370.c | 5 | ||||
-rw-r--r-- | tests/bugs/fdo14575.c | 2 | ||||
-rw-r--r-- | tests/bugs/fdo20701.c | 1 | ||||
-rw-r--r-- | tests/bugs/fdo9833.c | 1 | ||||
-rw-r--r-- | tests/bugs/tex1d-2dborder.c | 3 |
5 files changed, 5 insertions, 7 deletions
diff --git a/tests/bugs/fdo10370.c b/tests/bugs/fdo10370.c index caee31c4..08788d85 100644 --- a/tests/bugs/fdo10370.c +++ b/tests/bugs/fdo10370.c @@ -31,8 +31,6 @@ static GLuint tex_name; void init() { - int i, j; - glMatrixMode(GL_PROJECTION); glLoadIdentity(); glTranslatef(-1.0, -1.0, 0.0); @@ -66,7 +64,6 @@ void init() void display() { int i, j, k, col, pixel; - GLubyte zero_data = 0; GLfloat expected[4]; float dmax = 0.0; @@ -179,4 +176,6 @@ int main(int argc, char**argv) init(); glutDisplayFunc(display); glutMainLoop(); + + return 0; } diff --git a/tests/bugs/fdo14575.c b/tests/bugs/fdo14575.c index 5701eebf..42ce1a02 100644 --- a/tests/bugs/fdo14575.c +++ b/tests/bugs/fdo14575.c @@ -53,7 +53,7 @@ int main(int argc, char**argv) { GLfloat data = 1.0; GLfloat *v; - int buf; + GLuint buf; glutInit(&argc, argv); if (argc == 2 && !strcmp(argv[1], "-auto")) diff --git a/tests/bugs/fdo20701.c b/tests/bugs/fdo20701.c index d32ef367..1e8faec9 100644 --- a/tests/bugs/fdo20701.c +++ b/tests/bugs/fdo20701.c @@ -36,6 +36,7 @@ #include <stdio.h> #include <stdlib.h> +#include <string.h> #include <GL/glew.h> #if defined(__APPLE__) diff --git a/tests/bugs/fdo9833.c b/tests/bugs/fdo9833.c index 15663a64..e78d27e0 100644 --- a/tests/bugs/fdo9833.c +++ b/tests/bugs/fdo9833.c @@ -5,6 +5,7 @@ #include <stdlib.h> #include <stdio.h> +#include <string.h> #if defined(__APPLE__) #include <GLUT/glut.h> #else diff --git a/tests/bugs/tex1d-2dborder.c b/tests/bugs/tex1d-2dborder.c index 82da55ef..9b41fcba 100644 --- a/tests/bugs/tex1d-2dborder.c +++ b/tests/bugs/tex1d-2dborder.c @@ -86,8 +86,6 @@ static void test(GLenum wrapt, int cellx, int celly) static void Redisplay(void) { - int x, y; - glClearColor(0.5, 0.5, 0.5, 1.0); glClear(GL_COLOR_BUFFER_BIT); @@ -150,7 +148,6 @@ static void Key(unsigned char key, int x, int y) int main(int argc, char *argv[]) { - int i; glutInit(&argc, argv); if (argc == 2 && !strcmp(argv[1], "-auto")) Automatic = 1; |