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>
This commit is contained in:
Jon Turney 2017-04-18 10:44:55 +01:00 committed by Adam Jackson
parent e49f5947ed
commit fd96ff7fb3

View File

@ -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
/*