Commit 9622f535de616f4655a9516006c1bd2f8cbf5f7d
1 parent
989a7db3
Exists in
master
and in
1 other branch
Fixing warnings.
Showing
3 changed files
with
15 additions
and
0 deletions
Show diff stats
src/dialogs/print/print.c
... | ... | @@ -80,8 +80,13 @@ |
80 | 80 | |
81 | 81 | if(operation->contents.dynamic) |
82 | 82 | { |
83 | + #pragma GCC diagnostic push | |
84 | + #pragma GCC diagnostic ignored "-Wcast-function-type" | |
85 | + | |
83 | 86 | g_list_free_full(operation->contents.dynamic,(GDestroyNotify) lib3270_free); |
84 | 87 | operation->contents.dynamic = NULL; |
88 | + | |
89 | + #pragma GCC diagnostic pop | |
85 | 90 | } |
86 | 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 | 431 | |
432 | 432 | } |
433 | 433 | |
434 | + #pragma GCC diagnostic push | |
435 | + #pragma GCC diagnostic ignored "-Wcast-function-type" | |
436 | + | |
434 | 437 | if(dynamic) |
435 | 438 | g_list_free_full(dynamic,(GDestroyNotify) lib3270_free); |
436 | 439 | |
440 | + #pragma GCC diagnostic pop | |
437 | 441 | } |
438 | 442 | |
439 | 443 | void v3270_save_dialog_run(GtkWidget *widget) | ... | ... |
src/selection/selection.c
... | ... | @@ -42,7 +42,13 @@ void v3270_clear_selection(v3270 *terminal) |
42 | 42 | { |
43 | 43 | if(terminal->selection.blocks) |
44 | 44 | { |
45 | + #pragma GCC diagnostic push | |
46 | + #pragma GCC diagnostic ignored "-Wcast-function-type" | |
47 | + | |
45 | 48 | g_list_free_full(terminal->selection.blocks,(GDestroyNotify) lib3270_free); |
49 | + | |
50 | + #pragma GCC diagnostic pop | |
51 | + | |
46 | 52 | terminal->selection.blocks = NULL; |
47 | 53 | } |
48 | 54 | } | ... | ... |