From bbdc6c904913540234d9f58b7d404fd1099e3962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 15 Dec 2018 00:03:40 +0100 Subject: [PATCH] remove unused variable warnings --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index d0e9c5d..6b308b8 100644 --- a/main.c +++ b/main.c @@ -28,10 +28,11 @@ struct application_data { GtkWindow *main_window; }; - static void app_quit(GSimpleAction *action, GVariant *parameter, gpointer user_data) { struct application_data *appdata = (struct application_data *)user_data; + (void)action; + (void)parameter; gtk_widget_destroy(GTK_WIDGET(appdata->main_window)); } @@ -41,6 +42,8 @@ static void app_about(GSimpleAction *action, GVariant *parameter, gpointer user_ GtkBuilder *builder; GtkDialog *dialog; struct application_data *appdata = (struct application_data *)user_data; + (void)action; + (void)parameter; builder = gtk_builder_new_from_resource("/about.glade"); dialog = GTK_DIALOG(gtk_builder_get_object(builder, "about-dialog"));