From f5e8b86ceee12c9b4e40b9f2f6635708830496d4 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 28 Nov 2021 14:41:26 -0800 Subject: [PATCH] smyrna switch2D3D: squash -Wunused-parameter warning This parameter cannot be removed because `switch2D3D` is used as a callback in an API that expects this calling convention. --- cmd/smyrna/gui/glcompui.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/smyrna/gui/glcompui.c b/cmd/smyrna/gui/glcompui.c index d283bde16..70d2c6d6c 100644 --- a/cmd/smyrna/gui/glcompui.c +++ b/cmd/smyrna/gui/glcompui.c @@ -95,6 +95,8 @@ void menu_click_center(glCompObj *obj, GLfloat x, GLfloat y, void switch2D3D(glCompObj *obj, GLfloat x, GLfloat y, glMouseButtonType t) { + (void)obj; + if (t == glMouseLeftButton) { if (view->active_camera == -1) { -- 2.40.0