i965: Silence unused variable warning in release build
authorChad Versace <chad.versace@linux.intel.com>
Tue, 27 Aug 2013 22:08:00 +0000 (15:08 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Wed, 28 Aug 2013 17:42:51 +0000 (10:42 -0700)
Use `(void) success;` to silence this warning:

  i965/brw_vs.c:481:12:
  warning: unused variable 'success' [-Wunused-variable]
         bool success = do_vs_prog(brw, ctx->Shader.CurrentVertexProgram,

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_vs.c

index 6a67bc47042eabc9fc7bb820fca285d5ab103def..79b4364dbcb7e98b8e76f544f861c39329847838 100644 (file)
@@ -479,7 +479,7 @@ static void brw_upload_vs_prog(struct brw_context *brw)
                         &brw->vs.prog_offset, &brw->vs.prog_data)) {
       bool success = do_vs_prog(brw, ctx->Shader.CurrentVertexProgram,
                                vp, &key);
-
+      (void) success;
       assert(success);
    }
    if (memcmp(&brw->vs.prog_data->base.vue_map, &brw->vue_map_geom_out,