Commit 9622f535de616f4655a9516006c1bd2f8cbf5f7d

Authored by Perry Werneck
1 parent 989a7db3
Exists in master and in 1 other branch develop

Fixing warnings.

src/dialogs/print/print.c
@@ -80,8 +80,13 @@ @@ -80,8 +80,13 @@
80 80
81 if(operation->contents.dynamic) 81 if(operation->contents.dynamic)
82 { 82 {
  83 + #pragma GCC diagnostic push
  84 + #pragma GCC diagnostic ignored "-Wcast-function-type"
  85 +
83 g_list_free_full(operation->contents.dynamic,(GDestroyNotify) lib3270_free); 86 g_list_free_full(operation->contents.dynamic,(GDestroyNotify) lib3270_free);
84 operation->contents.dynamic = NULL; 87 operation->contents.dynamic = NULL;
  88 +
  89 + #pragma GCC diagnostic pop
85 } 90 }
86 operation->contents.selection = NULL; 91 operation->contents.selection = NULL;
87 92
src/dialogs/save/save.c
@@ -431,9 +431,13 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_ @@ -431,9 +431,13 @@ static void icon_press(GtkEntry *entry, G_GNUC_UNUSED GtkEntryIconPosition icon_
431 431
432 } 432 }
433 433
  434 + #pragma GCC diagnostic push
  435 + #pragma GCC diagnostic ignored "-Wcast-function-type"
  436 +
434 if(dynamic) 437 if(dynamic)
435 g_list_free_full(dynamic,(GDestroyNotify) lib3270_free); 438 g_list_free_full(dynamic,(GDestroyNotify) lib3270_free);
436 439
  440 + #pragma GCC diagnostic pop
437 } 441 }
438 442
439 void v3270_save_dialog_run(GtkWidget *widget) 443 void v3270_save_dialog_run(GtkWidget *widget)
src/selection/selection.c
@@ -42,7 +42,13 @@ void v3270_clear_selection(v3270 *terminal) @@ -42,7 +42,13 @@ void v3270_clear_selection(v3270 *terminal)
42 { 42 {
43 if(terminal->selection.blocks) 43 if(terminal->selection.blocks)
44 { 44 {
  45 + #pragma GCC diagnostic push
  46 + #pragma GCC diagnostic ignored "-Wcast-function-type"
  47 +
45 g_list_free_full(terminal->selection.blocks,(GDestroyNotify) lib3270_free); 48 g_list_free_full(terminal->selection.blocks,(GDestroyNotify) lib3270_free);
  49 +
  50 + #pragma GCC diagnostic pop
  51 +
46 terminal->selection.blocks = NULL; 52 terminal->selection.blocks = NULL;
47 } 53 }
48 } 54 }