aboutsummaryrefslogtreecommitdiffstats
path: root/test/pugl_cairo_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-27 13:36:51 +0200
committerDavid Robillard <d@drobilla.net>2019-07-28 15:01:26 +0200
commite7236e4a5ff6e7d28792d6ab8bee43c2024a9a53 (patch)
tree4f8808389f468107fe41abe0da4b6698650cb413 /test/pugl_cairo_test.c
parent4c4b388fab18b12c0cc915238f844eb78b9ff21d (diff)
downloadpugl-e7236e4a5ff6e7d28792d6ab8bee43c2024a9a53.tar.gz
pugl-e7236e4a5ff6e7d28792d6ab8bee43c2024a9a53.tar.bz2
pugl-e7236e4a5ff6e7d28792d6ab8bee43c2024a9a53.zip
Fix unused parameter warnings and prevent rot
Diffstat (limited to 'test/pugl_cairo_test.c')
-rw-r--r--test/pugl_cairo_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c
index ad68f3f..d749485 100644
--- a/test/pugl_cairo_test.c
+++ b/test/pugl_cairo_test.c
@@ -94,6 +94,7 @@ buttonDraw(cairo_t* cr, const Button* but)
static bool
buttonTouches(const Button* but, double x, double y)
{
+ (void)but;
return (x >= toggle_button.x && x <= toggle_button.x + toggle_button.w &&
y >= toggle_button.y && y <= toggle_button.y + toggle_button.h);
}
@@ -121,6 +122,7 @@ onDisplay(PuglView* view)
static void
onClose(PuglView* view)
{
+ (void)view;
quit = 1;
}