summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-07-01 02:03:33 +0000
committerBrian Paul <[email protected]>2005-07-01 02:03:33 +0000
commit8e8fa63cb401f38b3320484faa7ea463cca9d8d5 (patch)
treee0b43406f7c1881864e8b3e8ff3e8c11fd046230
parent559c494fc8b4cc8b058a2f2046ce492d0294e51e (diff)
comment-out some unused code to silence warnings
-rw-r--r--src/mesa/shader/arbprogparse.c3
-rw-r--r--src/mesa/shader/grammar/grammar.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/shader/arbprogparse.c b/src/mesa/shader/arbprogparse.c
index ffb451d8ae1..b9bd1b0cee2 100644
--- a/src/mesa/shader/arbprogparse.c
+++ b/src/mesa/shader/arbprogparse.c
@@ -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.
diff --git a/src/mesa/shader/grammar/grammar.c b/src/mesa/shader/grammar/grammar.c
index 1260bf29fb1..2d307f43fe6 100644
--- a/src/mesa/shader/grammar/grammar.c
+++ b/src/mesa/shader/grammar/grammar.c
@@ -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 */