From 26471264bf7f4628814f038d518d36aad705e1a8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 25 Aug 2020 11:24:43 -0700 Subject: [PATCH] nvc0: Fix compiler warning about unused var that gets asserted. Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/nouveau/nvc0/nvc0_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c index 622cfd4b9e1..67e5adabd16 100644 --- a/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c @@ -103,7 +103,7 @@ nvc0_resource_from_user_memory(struct pipe_screen *pipe, const struct pipe_resource *templ, void *user_memory) { - struct nouveau_screen *screen = nouveau_screen(pipe); + ASSERTED struct nouveau_screen *screen = nouveau_screen(pipe); assert(screen->has_svm); assert(templ->target == PIPE_BUFFER); -- 2.30.2