Mesa (master): pipe-loader: use MAYBE_UNUSED to silence warning

Brian Paul brianp at kemper.freedesktop.org
Thu Aug 24 13:37:34 UTC 2017


Module: Mesa
Branch: master
Commit: f883ede9490d3613e7b2b8034e0c0baa3929b37c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f883ede9490d3613e7b2b8034e0c0baa3929b37c

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Aug 22 11:10:20 2017 -0600

pipe-loader: use MAYBE_UNUSED to silence warning

Trivial.

---

 src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
index 677814ad26..84894c0caf 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_sw.c
@@ -270,7 +270,8 @@ fail:
 static void
 pipe_loader_sw_release(struct pipe_loader_device **dev)
 {
-   struct pipe_loader_sw_device *sdev = pipe_loader_sw_device(*dev);
+   MAYBE_UNUSED struct pipe_loader_sw_device *sdev =
+      pipe_loader_sw_device(*dev);
 
 #ifndef GALLIUM_STATIC_TARGETS
    if (sdev->lib)




More information about the mesa-commit mailing list