From: Brian Paul Date: Wed, 17 Aug 2016 14:29:55 +0000 (-0600) Subject: gallium/hud: move signo declaration inside PIPE_OS_UNIX block X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d221a6545cc0778716f1abf45fd096d6cd5a1b8e;p=mesa.git gallium/hud: move signo declaration inside PIPE_OS_UNIX block To silence unused var warning with MSVC, MinGW. Reviewed-by: Marek Olšák --- diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 3453bdae3b0..f1a1ceeb38c 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