Fixed compiler warnings.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 01 Jun 2011 02:11:57 -0400
changeset 1041 200cde29af83
parent 1040 053626102255
child 1042 cb6659f80bb9
Fixed compiler warnings.
mojoshader_effects.c
--- a/mojoshader_effects.c	Wed Jun 01 01:16:12 2011 -0400
+++ b/mojoshader_effects.c	Wed Jun 01 02:11:57 2011 -0400
@@ -260,8 +260,8 @@
                 goto parseEffect_unexpectedEOF;
 
             const uint32 typeoffset = readui32(&ptr, &len);
-            const uint32 valoffset = readui32(&ptr, &len);
-            const uint32 flags = readui32(&ptr, &len);
+            /*const uint32 valoffset =*/ readui32(&ptr, &len);
+            /*const uint32 flags =*/ readui32(&ptr, &len);
             const uint32 numannos = readui32(&ptr, &len);
             for (j = 0; j < numannos; j++)
             {
@@ -274,8 +274,8 @@
 
             const uint8 *typeptr = base + typeoffset;
             unsigned int typelen = 9999999;  // !!! FIXME
-            const uint32 paramtype = readui32(&typeptr, &typelen);
-            const uint32 paramclass = readui32(&typeptr, &typelen);
+            /*const uint32 paramtype =*/ readui32(&typeptr, &typelen);
+            /*const uint32 paramclass =*/ readui32(&typeptr, &typelen);
             const uint32 paramname = readui32(&typeptr, &typelen);
             const uint32 paramsemantic = readui32(&typeptr, &typelen);