Mesa (glsl-pp-rework-2): glsl/cl: silence unused var warning

Brian Paul brianp at kemper.freedesktop.org
Thu Dec 10 07:33:30 PST 2009


Module: Mesa
Branch: glsl-pp-rework-2
Commit: 7502b6affa72915cadeb0837028e7655e459da69
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7502b6affa72915cadeb0837028e7655e459da69

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Dec 10 08:24:45 2009 -0700

glsl/cl: silence unused var warning

---

 src/glsl/cl/sl_cl_parse.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/glsl/cl/sl_cl_parse.c b/src/glsl/cl/sl_cl_parse.c
index 5919186..81e30a8 100644
--- a/src/glsl/cl/sl_cl_parse.c
+++ b/src/glsl/cl/sl_cl_parse.c
@@ -1596,6 +1596,8 @@ _parse_parameter_declaration(struct parse_context *ctx,
    struct parse_state p = *ps;
    unsigned int e = _emit(ctx, &p.out, PARAMETER_NEXT);
 
+   (void) e;
+
    if (_parse_type_qualifier(ctx, &p)) {
       _emit(ctx, &p.out, TYPE_QUALIFIER_NONE);
    }



More information about the mesa-commit mailing list