From: Eric Anholt Date: Tue, 25 Aug 2020 18:24:43 +0000 (-0700) Subject: nvc0: Fix compiler warning about unused var that gets asserted. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26471264bf7f4628814f038d518d36aad705e1a8;p=mesa.git nvc0: Fix compiler warning about unused var that gets asserted. Reviewed-by: Alyssa Rosenzweig Part-of: --- 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);