comment-out some unused code to silence warnings
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 1 Jul 2005 02:03:33 +0000 (02:03 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 1 Jul 2005 02:03:33 +0000 (02:03 +0000)
src/mesa/shader/arbprogparse.c
src/mesa/shader/grammar/grammar.c

index ffb451d..b9bd1b0 100644 (file)
@@ -2361,6 +2361,7 @@ parse_address_reg (GLcontext * ctx, GLubyte ** inst,
    return 0;
 }
 
+#if 0 /* unused */
 /**
  * Handle the parsing out of a masked address register
  *
@@ -2387,7 +2388,7 @@ parse_masked_address_reg (GLcontext * ctx, GLubyte ** inst,
 
    return 0;
 }
-
+#endif
 
 /**
  * Parse out a swizzle mask.
index 1260bf2..2d307f4 100644 (file)
@@ -269,7 +269,7 @@ static const byte *OUT_OF_MEMORY =          (byte *) "internal error 1001: out o
 static const byte *UNRESOLVED_REFERENCE =   (byte *) "internal error 1002: unresolved reference '$'";
 static const byte *INVALID_GRAMMAR_ID =     (byte *) "internal error 1003: invalid grammar object";
 static const byte *INVALID_REGISTER_NAME =  (byte *) "internal error 1004: invalid register name: '$'";
-static const byte *DUPLICATE_IDENTIFIER =   (byte *) "internal error 1005: identifier '$' already defined";
+/*static const byte *DUPLICATE_IDENTIFIER =   (byte *) "internal error 1005: identifier '$' already defined";*/
 static const byte *UNREFERENCED_IDENTIFIER =(byte *) "internal error 1006: unreferenced identifier '$'";
 
 static const byte *error_message = NULL;    /* points to one of the error messages above */