summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2004-01-28 16:28:53 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2004-01-28 16:28:53 +0000
commit29b2ced167db4f89845734e2c34f66912075f9cd (patch)
treed88ddb1c347d4eb3062d2f731f45360056c6a3a0
parente8df62b5a7b2f9a973cdd1fa005c2e8799e09e04 (diff)
fix printf warnings
-rw-r--r--progs/tests/arbfpspec.c4
-rw-r--r--progs/tests/arbfptest1.c2
-rw-r--r--progs/tests/arbvptest1.c2
-rw-r--r--progs/tests/arbvptest3.c2
-rw-r--r--progs/tests/arbvptorus.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/progs/tests/arbfpspec.c b/progs/tests/arbfpspec.c
index 0764a4fdfe..73c55369ec 100644
--- a/progs/tests/arbfpspec.c
+++ b/progs/tests/arbfpspec.c
@@ -151,7 +151,7 @@ static void Init( void )
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
printf("errorpos: %d\n", errorpos);
- printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
+ printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
}
glBindProgramARB(GL_FRAGMENT_PROGRAM_ARB, fprognum);
@@ -165,7 +165,7 @@ static void Init( void )
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
printf("errorpos: %d\n", errorpos);
- printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
+ printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
}
glEnable(GL_VERTEX_PROGRAM_ARB);
diff --git a/progs/tests/arbfptest1.c b/progs/tests/arbfptest1.c
index ed1ed01652..45d05125b2 100644
--- a/progs/tests/arbfptest1.c
+++ b/progs/tests/arbfptest1.c
@@ -70,7 +70,7 @@ static void load_program(const char *prog, GLuint prognum)
{
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
printf("errorpos: %d\n", errorpos);
- printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
+ printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
for (a=-10; a<10; a++)
{
diff --git a/progs/tests/arbvptest1.c b/progs/tests/arbvptest1.c
index 62c37c1d9a..5c462c42c7 100644
--- a/progs/tests/arbvptest1.c
+++ b/progs/tests/arbvptest1.c
@@ -66,7 +66,7 @@ static void load_program(const char *prog, GLuint prognum)
{
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
printf("errorpos: %d\n", errorpos);
- printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
+ printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
for (a=-10; a<10; a++)
{
diff --git a/progs/tests/arbvptest3.c b/progs/tests/arbvptest3.c
index a3e6aabde0..5f6d4f7e99 100644
--- a/progs/tests/arbvptest3.c
+++ b/progs/tests/arbvptest3.c
@@ -107,7 +107,7 @@ static void Init( void )
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
printf("errorpos: %d\n", errorpos);
- printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
+ printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
}
}
diff --git a/progs/tests/arbvptorus.c b/progs/tests/arbvptorus.c
index 0015ae6f63..c1e2d0b76a 100644
--- a/progs/tests/arbvptorus.c
+++ b/progs/tests/arbvptorus.c
@@ -158,7 +158,7 @@ static void Init( void )
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorpos);
printf("errorpos: %d\n", errorpos);
- printf("%s\n", glGetString(GL_PROGRAM_ERROR_STRING_ARB));
+ printf("%s\n", (char *)glGetString(GL_PROGRAM_ERROR_STRING_ARB));
}
/* Light position */