From e7236e4a5ff6e7d28792d6ab8bee43c2024a9a53 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 27 Jul 2019 13:36:51 +0200 Subject: Fix unused parameter warnings and prevent rot --- test/pugl_cairo_test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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; } -- cgit v1.2.1