fix printf warnings
authorAlan Hourihane <alanh@tungstengraphics.com>
Wed, 28 Jan 2004 16:28:53 +0000 (16:28 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Wed, 28 Jan 2004 16:28:53 +0000 (16:28 +0000)
progs/tests/arbfpspec.c
progs/tests/arbfptest1.c
progs/tests/arbvptest1.c
progs/tests/arbvptest3.c
progs/tests/arbvptorus.c

index 0764a4fdfe03f811b9250ac0460814af439f7e97..73c55369ec82cbb2135c56449334864119422dc0 100644 (file)
@@ -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);
index ed1ed01652eaeedee287b47c4cf9cfdcbb5e3015..45d05125b2614528a4d7869916d5b0317fd4c652 100644 (file)
@@ -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++)
       {
index 62c37c1d9a14dee36324d2eff4e165c699b5e99d..5c462c42c7f4de3c4479f5f842560abd1b951d07 100644 (file)
@@ -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++)
       {
index a3e6aabde0b5f8715474ffdcca1bc992fd3f01b3..5f6d4f7e99d524099d08fdb1928fe0ead3ca0b52 100644 (file)
@@ -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));
    }
 }
 
index 0015ae6f631fecad0684796534866a4483efcb0d..c1e2d0b76a8c38d8f767227b21fb18399280fd95 100644 (file)
@@ -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 */