summaryrefslogtreecommitdiff
path: root/hw/xwin
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-04-18 10:44:55 +0100
committerAdam Jackson <ajax@redhat.com>2017-05-15 17:46:37 -0400
commitfd96ff7fb325f54cb06c2bf5b8c37c75457b5c42 (patch)
tree7110943c36f695019b602d4dfc74d3cf8929c106 /hw/xwin
parente49f5947eda578d8b029f42fb4ec9c90f413b4b3 (diff)
hw/xwin: Fix -Wunused-function warning for MessageName() in non-debug builds
../hw/xwin/winmultiwindowwm.c:188:1: warning: ‘MessageName’ defined but not used [-Wunused-function] Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk> Reviewed-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Diffstat (limited to 'hw/xwin')
-rw-r--r--hw/xwin/winmultiwindowwm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xwin/winmultiwindowwm.c b/hw/xwin/winmultiwindowwm.c
index df7e6d3d5..c68387d81 100644
--- a/hw/xwin/winmultiwindowwm.c
+++ b/hw/xwin/winmultiwindowwm.c
@@ -184,6 +184,7 @@ static Bool g_shutdown = FALSE;
* Translate msg id to text, for debug purposes
*/
+#if CYGMULTIWINDOW_DEBUG
static const char *
MessageName(winWMMessagePtr msg)
{
@@ -233,6 +234,7 @@ MessageName(winWMMessagePtr msg)
break;
}
}
+#endif
/*