Make compiler happier

This commit is contained in:
Hysterical Raisins
2019-07-07 21:00:26 +02:00
parent b3e1d84e6c
commit 5235b47827
3 changed files with 13 additions and 2 deletions

View File

@ -78,12 +78,15 @@ replace_keycode (SeatEmitter *emitter,
guint keycode,
guint *keysym)
{
#if 0 // ===== @raisins: -Wunused-variable =====
GdkDisplay *display = gdk_display_get_default ();
//Display *xdisplay = GDK_DISPLAY_XDISPLAY (display);
guint old_keysym;
int keysyms_per_keycode;
KeySym *syms;
return TRUE; // FIXME: no xkb allocated at the moment, pretending all is fine
#endif // ===== @raisins: -Wunused-variable =====
return TRUE; // FIXME: no xkb allocated at the moment, pretending all is fine
g_return_val_if_fail (emitter->xkb->min_key_code <= keycode &&
keycode <= emitter->xkb->max_key_code,
FALSE);