summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-08-29 14:56:29 -0700
committerIan Romanick <[email protected]>2011-09-09 12:01:50 -0700
commit9a3bd5e0452c9c791ba94155d3c9ddba42abd114 (patch)
treeb4b8600b5df735d507f162714c8844a67207943b /src/glsl/ast_to_hir.cpp
parent681d432f8186cd97e04cf293add72fd73c50523d (diff)
glsl: Silence several "warning: unused parameter"
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
-rw-r--r--src/glsl/ast_to_hir.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 777f190a4fe..484786c5fbd 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -3014,6 +3014,12 @@ ast_function::hir(exec_list *instructions,
const char *const name = identifier;
+ /* New functions are always added to the top-level IR instruction stream,
+ * so this instruction list pointer is ignored. See also emit_function
+ * (called below).
+ */
+ (void) instructions;
+
/* From page 21 (page 27 of the PDF) of the GLSL 1.20 spec,
*
* "Function declarations (prototypes) cannot occur inside of functions;