dzn: Fix 'statement with no effect' warning
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 28 Jun 2022 12:48:43 +0000 (14:48 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 Jun 2022 16:54:42 +0000 (09:54 -0700)
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17250>

src/microsoft/vulkan/dzn_pipeline.c
src/microsoft/vulkan/meson.build

index a56f58b..03388d1 100644 (file)
@@ -1474,7 +1474,6 @@ dzn_graphics_pipeline_translate_blend(struct dzn_graphics_pipeline *pipeline,
 
       desc->RenderTarget[i].BlendEnable =
          in_blend->pAttachments[i].blendEnable;
-         in_blend->logicOpEnable;
       desc->RenderTarget[i].RenderTargetWriteMask =
          in_blend->pAttachments[i].colorWriteMask;
 
index 21d6213..ec4b52f 100644 (file)
@@ -65,6 +65,7 @@ if cc.get_argument_syntax() != 'msvc'
   dzn_flags += [
     '-Werror=unused-variable',
     '-Werror=unused-but-set-variable',
+    '-Werror=unused-value',
   ]
 endif