Commit e1dcf1453716cfb6068da1449ef943141be9ab2c
1 parent
e7a77c01
Exists in
master
and in
2 other branches
Fixing warnings.
Showing
4 changed files
with
8 additions
and
6 deletions
Show diff stats
src/objects/application/application.c
@@ -228,7 +228,7 @@ static gboolean on_user_interface(const gchar G_GNUC_UNUSED(*option), const gcha | @@ -228,7 +228,7 @@ static gboolean on_user_interface(const gchar G_GNUC_UNUSED(*option), const gcha | ||
228 | 228 | ||
229 | } | 229 | } |
230 | 230 | ||
231 | -static gboolean on_logfile(const gchar G_GNUC_UNUSED(*option), const gchar *value, gpointer G_GNUC_UNUSED(dunno), GError **error) { | 231 | +static gboolean on_logfile(const gchar G_GNUC_UNUSED(*option), const gchar *value, gpointer G_GNUC_UNUSED(dunno), GError G_GNUC_UNUSED(**error)) { |
232 | pw3270_application_set_log_filename(g_application_get_default(),value); | 232 | pw3270_application_set_log_filename(g_application_get_default(),value); |
233 | return TRUE; | 233 | return TRUE; |
234 | } | 234 | } |
@@ -563,7 +563,7 @@ GList * pw3270_application_get_keypad_models(GApplication *app) { | @@ -563,7 +563,7 @@ GList * pw3270_application_get_keypad_models(GApplication *app) { | ||
563 | return PW3270_APPLICATION(app)->keypads; | 563 | return PW3270_APPLICATION(app)->keypads; |
564 | } | 564 | } |
565 | 565 | ||
566 | -static int loghandler(const H3270 *hSession, pw3270Application *app, const char *module, int code, const char *message) { | 566 | +static int loghandler(const H3270 G_GNUC_UNUSED(*hSession), pw3270Application *app, const char *module, int G_GNUC_UNUSED(code), const char *message) { |
567 | 567 | ||
568 | if(!app->logfile) { | 568 | if(!app->logfile) { |
569 | return -1; | 569 | return -1; |
src/objects/keypad/attribute.c
@@ -45,7 +45,7 @@ static void parse_error (GMarkupParseContext G_GNUC_UNUSED(*context), GError G_G | @@ -45,7 +45,7 @@ static void parse_error (GMarkupParseContext G_GNUC_UNUSED(*context), GError G_G | ||
45 | g_free(data); | 45 | g_free(data); |
46 | } | 46 | } |
47 | 47 | ||
48 | -static void parse_text(GMarkupParseContext *context, const gchar *text, gsize text_len, gpointer user_data, GError **error) { | 48 | +static void parse_text(GMarkupParseContext G_GNUC_UNUSED(*context), const gchar *text, gsize G_GNUC_UNUSED(text_len), gpointer user_data, GError **error) { |
49 | 49 | ||
50 | if(text && ((struct Attribute *) user_data)->translatable ) { | 50 | if(text && ((struct Attribute *) user_data)->translatable ) { |
51 | text = gettext(text); | 51 | text = gettext(text); |
@@ -132,7 +132,7 @@ void attribute_element_start(GMarkupParseContext *context,const gchar **names,co | @@ -132,7 +132,7 @@ void attribute_element_start(GMarkupParseContext *context,const gchar **names,co | ||
132 | 132 | ||
133 | } | 133 | } |
134 | 134 | ||
135 | -void attribute_element_end(GMarkupParseContext *context, GObject *parent, GError **error) { | 135 | +void attribute_element_end(GMarkupParseContext *context, GObject G_GNUC_UNUSED(*parent), GError G_GNUC_UNUSED(**error)) { |
136 | 136 | ||
137 | struct Attribute * data = g_markup_parse_context_pop(context); | 137 | struct Attribute * data = g_markup_parse_context_pop(context); |
138 | g_free(data); | 138 | g_free(data); |
src/objects/settings/actionview.c
@@ -52,7 +52,7 @@ struct _PW3270SettingsActionsClass { | @@ -52,7 +52,7 @@ struct _PW3270SettingsActionsClass { | ||
52 | 52 | ||
53 | G_DEFINE_TYPE(PW3270SettingsActions, PW3270SettingsActions, GTK_TYPE_GRID); | 53 | G_DEFINE_TYPE(PW3270SettingsActions, PW3270SettingsActions, GTK_TYPE_GRID); |
54 | 54 | ||
55 | -static void PW3270SettingsActions_class_init(PW3270SettingsActionsClass *klass) { | 55 | +static void PW3270SettingsActions_class_init(PW3270SettingsActionsClass G_GNUC_UNUSED(*klass)) { |
56 | 56 | ||
57 | } | 57 | } |
58 | 58 | ||
@@ -87,7 +87,7 @@ static void PW3270SettingsActions_init(PW3270SettingsActions *grid) { | @@ -87,7 +87,7 @@ static void PW3270SettingsActions_init(PW3270SettingsActions *grid) { | ||
87 | { | 87 | { |
88 | // Create views | 88 | // Create views |
89 | GtkTreeSelection * selection; | 89 | GtkTreeSelection * selection; |
90 | - GtkWidget *box; | 90 | + //GtkWidget *box; |
91 | 91 | ||
92 | for(ix = 0; ix < G_N_ELEMENTS(grid->views); ix++) { | 92 | for(ix = 0; ix < G_N_ELEMENTS(grid->views); ix++) { |
93 | 93 |
src/objects/window/tools.c
@@ -31,6 +31,8 @@ | @@ -31,6 +31,8 @@ | ||
31 | #include <pw3270/window.h> | 31 | #include <pw3270/window.h> |
32 | 32 | ||
33 | GtkWidget * pw3270_window_get_terminal(GtkWidget *window) { | 33 | GtkWidget * pw3270_window_get_terminal(GtkWidget *window) { |
34 | + g_return_val_if_fail(PW3270_IS_APPLICATION_WINDOW(window),NULL); | ||
35 | + return PW3270_APPLICATION_WINDOW(window)->terminal; | ||
34 | } | 36 | } |
35 | 37 | ||
36 | H3270 * pw3270_window_get_session_handle(GtkWidget *window) { | 38 | H3270 * pw3270_window_get_session_handle(GtkWidget *window) { |