aboutsummaryrefslogtreecommitdiff
path: root/pugl
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-02-02 09:50:38 +0100
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-02-02 09:50:38 +0100
commit99b57271fadcf90616e4befb9557437149a8aed3 (patch)
tree157a97d0bf4080e7a178486467a700151333039e /pugl
parent66760c1abbd7d3afe9f80e32fb6b986d84c46a61 (diff)
parent6887cac9e577dc20cf31b5e51a77d19755874411 (diff)
downloadsynthpod-99b57271fadcf90616e4befb9557437149a8aed3.zip
synthpod-99b57271fadcf90616e4befb9557437149a8aed3.tar.gz
synthpod-99b57271fadcf90616e4befb9557437149a8aed3.tar.bz2
synthpod-99b57271fadcf90616e4befb9557437149a8aed3.tar.xz
Merge commit '6887cac9e577dc20cf31b5e51a77d19755874411'
Diffstat (limited to 'pugl')
-rw-r--r--pugl/pugl/cairo_gl.h3
-rw-r--r--pugl/pugl/pugl_internal.h2
-rw-r--r--pugl/pugl/pugl_x11.c4
3 files changed, 6 insertions, 3 deletions
diff --git a/pugl/pugl/cairo_gl.h b/pugl/pugl/cairo_gl.h
index 5c0f1f9..fb4cb2a 100644
--- a/pugl/pugl/cairo_gl.h
+++ b/pugl/pugl/cairo_gl.h
@@ -48,7 +48,8 @@ pugl_cairo_gl_free(PuglCairoGL* ctx)
}
static void
-pugl_cairo_gl_configure(PuglCairoGL* ctx, int width, int height)
+pugl_cairo_gl_configure(PuglCairoGL* ctx,
+ int width __attribute__((unused)), int height __attribute__((unused)))
{
glDisable(GL_DEPTH_TEST);
glEnable(GL_BLEND);
diff --git a/pugl/pugl/pugl_internal.h b/pugl/pugl/pugl_internal.h
index 45084de..5976cd7 100644
--- a/pugl/pugl/pugl_internal.h
+++ b/pugl/pugl/pugl_internal.h
@@ -64,7 +64,7 @@ struct PuglViewImpl {
PuglInternals* puglInitInternals(void);
PuglView*
-puglInit(int* pargc, char** argv)
+puglInit(int* pargc __attribute__((unused)), char** argv __attribute__((unused)))
{
PuglView* view = (PuglView*)calloc(1, sizeof(PuglView));
if (!view) {
diff --git a/pugl/pugl/pugl_x11.c b/pugl/pugl/pugl_x11.c
index 28fe99f..5c20782 100644
--- a/pugl/pugl/pugl_x11.c
+++ b/pugl/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) {