From e28fb04cd78b5963bad176023c682fa6de1cb13f Mon Sep 17 00:00:00 2001 From: c vw Date: Fri, 28 May 2021 11:37:10 +0200 Subject: [PATCH] Suppress compiler warnings (unused variables etc.) --- midi_menu.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/midi_menu.c b/midi_menu.c index 14c0783..bf32e3b 100644 --- a/midi_menu.c +++ b/midi_menu.c @@ -1,4 +1,4 @@ -/* Copyright (C) +/* cOpyright (C) * 2020 - John Melton, G0ORX/N6LYT * * This program is free software; you can redistribute it and/or @@ -50,11 +50,8 @@ enum { }; static GtkWidget *parent_window=NULL; -static GtkWidget *menu_b=NULL; static GtkWidget *dialog=NULL; -static GtkWidget *midi_enable_b; - static GtkListStore *store; static GtkWidget *view; static GtkWidget *scrolled_window=NULL; @@ -64,8 +61,6 @@ static GtkTreeModel *model; static GtkTreeIter iter; struct desc *current_cmd; -static GtkWidget *filename; - static GtkWidget *newEvent; static GtkWidget *newChannel; static GtkWidget *newNote; @@ -204,8 +199,6 @@ static void update_wheelparams(gpointer user_data) { } static void type_changed_cb(GtkWidget *widget, gpointer data) { - int i=0; - int j=0; // update actions available for the type gchar *type=gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(widget)); @@ -405,7 +398,6 @@ static void save_cb(GtkWidget *widget,gpointer user_data) { GtkWidget *save_dialog; GtkFileChooser *chooser; GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_SAVE; - gchar *filename; gint res; struct desc *cmd; @@ -437,7 +429,6 @@ static void load_cb(GtkWidget *widget,gpointer user_data) { GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN; gchar *filename; gint res; - struct desc *cmd; load_dialog = gtk_file_chooser_dialog_new ("Open MIDI File", GTK_WINDOW(dialog), @@ -467,9 +458,7 @@ static void load_original_cb(GtkWidget *widget,gpointer user_data) { GtkWidget *load_dialog; GtkFileChooser *chooser; GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN; - gchar *filename; gint res; - struct desc *cmd; load_dialog = gtk_file_chooser_dialog_new ("Open LEGACY MIDI File", GTK_WINDOW(dialog), @@ -679,6 +668,7 @@ static void update_cb(GtkButton *widget,gpointer user_data) { //g_print("%s: type=%s action=%s\n",__FUNCTION__,str_type,str_action); thisAction=MIDI_ACTION_NONE; + onoff=0; i=0; while(ActionTable[i].action!=MIDI_ACTION_LAST) { if(strcmp(ActionTable[i].str,str_action)==0) { -- 2.45.2