testparse.c
branchtrunk
changeset 48 86dc2c772d26
parent 47 49953c7cb142
child 50 427f32b5eeff
--- a/testparse.c	Thu Mar 27 22:43:36 2008 -0400
+++ b/testparse.c	Thu Mar 27 22:52:20 2008 -0400
@@ -28,7 +28,7 @@
 #define Free NULL
 #endif
 
-static const char *shader_type(MOJOSHADER_shaderType s)
+static const char *shader_type(const MOJOSHADER_shaderType s)
 {
     switch (s)
     {
@@ -36,9 +36,10 @@
         case MOJOSHADER_TYPE_PIXEL: return "pixel";
         case MOJOSHADER_TYPE_VERTEX: return "vertex";
         case MOJOSHADER_TYPE_GEOMETRY: return "geometry";
+        default: return "(bogus value?)";
     } // switch
 
-    return "(bogus value?)";
+    return NULL;  // shouldn't hit this.
 } // shader_type