gallium/tests: Fix compiler warning about unused vars in trivial tests.
[mesa.git] / src / gallium / tests / trivial / quad-tex.c
index 271dee648d661669b183d7fb0fec8c21e734c498..ba0a7ac8fb33ffd827d98d2bf93d7cb9b90a76e3 100644 (file)
@@ -47,6 +47,7 @@
 /* constant state object helper */
 #include "cso_cache/cso_context.h"
 
+#include "util/macros.h"
 /* u_sampler_view_default_template */
 #include "util/u_sampler.h"
 /* debug_dump_surface_bmp */
@@ -89,7 +90,7 @@ struct program
 static void init_prog(struct program *p)
 {
        struct pipe_surface surf_tmpl;
-       int ret;
+       ASSERTED int ret;
 
        /* find a hardware device */
        ret = pipe_loader_probe(&p->dev, 1);
@@ -309,7 +310,7 @@ static void draw(struct program *p)
        cso_set_framebuffer(p->cso, &p->framebuffer);
 
        /* clear the render target */
-       p->pipe->clear(p->pipe, PIPE_CLEAR_COLOR, &p->clear_color, 0, 0);
+       p->pipe->clear(p->pipe, PIPE_CLEAR_COLOR, NULL, &p->clear_color, 0, 0);
 
        /* set misc state we care about */
        cso_set_blend(p->cso, &p->blend);