aboutsummaryrefslogtreecommitdiff
path: root/pugl/pugl_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r--pugl/pugl_x11.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c
index 28fe99f..5c20782 100644
--- a/pugl/pugl_x11.c
+++ b/pugl/pugl_x11.c
@@ -476,6 +476,7 @@ translateEvent(PuglView* view, XEvent xevent)
if (!strcmp(type, "WM_PROTOCOLS")) {
event.type = PUGL_CLOSE;
}
+ XFree(type);
break;
}
case ConfigureNotify:
@@ -521,6 +522,7 @@ translateEvent(PuglView* view, XEvent xevent)
case 7: event.scroll.dx = 1.0f; break;
}
}
+ __attribute__((fallthrough));
// nobreak
case ButtonRelease:
if (xevent.xbutton.button < 4 || xevent.xbutton.button > 7) {
@@ -798,7 +800,7 @@ puglGetNativeWindow(PuglView* view)
}
void*
-puglGetContext(PuglView* view)
+puglGetContext(PuglView* view __attribute__((unused)))
{
#ifdef PUGL_HAVE_CAIRO
if (view->ctx_type & PUGL_CAIRO) {