Commit 1418030b730b468172842cba999ede658d4583cd

Authored by Perry Werneck
2 parents 2f19f1c4 5fbb011d

Merge branch 'master' into develop

Showing 1 changed file with 3 additions and 5 deletions   Show diff stats
src/objects/window/header-settings.c
@@ -79,8 +79,6 @@ @@ -79,8 +79,6 @@
79 79
80 GtkWidget * pw3270_header_settings_new() { 80 GtkWidget * pw3270_header_settings_new() {
81 81
82 - size_t ix;  
83 -  
84 // Create page widget. 82 // Create page widget.
85 PW3270Settings * settings = pw3270_settings_new(); 83 PW3270Settings * settings = pw3270_settings_new();
86 settings->label = _("Title bar"); 84 settings->label = _("Title bar");
@@ -104,7 +102,7 @@ @@ -104,7 +102,7 @@
104 return GTK_WIDGET(settings); 102 return GTK_WIDGET(settings);
105 } 103 }
106 104
107 - void load(GtkWidget *widget, PW3270SettingsPrivate *page) { 105 + void load(GtkWidget G_GNUC_UNUSED(*widget), PW3270SettingsPrivate *page) {
108 106
109 g_autoptr(GSettings) settings = pw3270_application_window_settings_new(); 107 g_autoptr(GSettings) settings = pw3270_application_window_settings_new();
110 108
@@ -140,7 +138,7 @@ @@ -140,7 +138,7 @@
140 ); 138 );
141 139
142 if(error) { 140 if(error) {
143 - g_warning(error->message); 141 + g_warning("%s",error->message);
144 g_error_free(error); 142 g_error_free(error);
145 error = NULL; 143 error = NULL;
146 } 144 }
@@ -164,7 +162,7 @@ @@ -164,7 +162,7 @@
164 pw3270_action_list_free(action_list); 162 pw3270_action_list_free(action_list);
165 } 163 }
166 164
167 - void apply(GtkWidget *widget, PW3270SettingsPrivate *page) { 165 + void apply(GtkWidget G_GNUC_UNUSED(*widget), PW3270SettingsPrivate *page) {
168 166
169 g_autofree gchar * action_names = pw3270_settings_action_get(page->editor); 167 g_autofree gchar * action_names = pw3270_settings_action_get(page->editor);
170 g_autoptr(GSettings) settings = pw3270_application_window_settings_new(); 168 g_autoptr(GSettings) settings = pw3270_application_window_settings_new();