Mesa (master): gallium/hud: move signo declaration inside PIPE_OS_UNIX block

Brian Paul brianp at kemper.freedesktop.org
Fri Aug 26 13:39:02 UTC 2016


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Aug 17 08:29:55 2016 -0600

gallium/hud: move signo declaration inside PIPE_OS_UNIX block

To silence unused var warning with MSVC, MinGW.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/gallium/auxiliary/hud/hud_context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c
index 3453bda..f1a1cee 100644
--- a/src/gallium/auxiliary/hud/hud_context.c
+++ b/src/gallium/auxiliary/hud/hud_context.c
@@ -1242,8 +1242,8 @@ hud_create(struct pipe_context *pipe, struct cso_context *cso)
    struct pipe_sampler_view view_templ;
    unsigned i;
    const char *env = debug_get_option("GALLIUM_HUD", NULL);
-   unsigned signo = debug_get_num_option("GALLIUM_HUD_TOGGLE_SIGNAL", 0);
 #ifdef PIPE_OS_UNIX
+   unsigned signo = debug_get_num_option("GALLIUM_HUD_TOGGLE_SIGNAL", 0);
    static boolean sig_handled = FALSE;
    struct sigaction action = {};
 #endif




More information about the mesa-commit mailing list