Commit 8600172fce28b5669cc9544577aea20ab3fccda8

Authored by Perry Werneck
1 parent 66dafb56
Exists in master and in 1 other branch develop

Disabling warnings for known problems.

Fixing toggle property signal.
src/dialogs/hostselect.c
... ... @@ -30,6 +30,8 @@
30 30 #include "private.h"
31 31 #include <hostselect.h>
32 32  
  33 + #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  34 +
33 35 /*--[ Widget definition ]----------------------------------------------------------------------------*/
34 36  
35 37 static const struct _colortable
... ...
src/testprogram/testprogram.c
... ... @@ -28,6 +28,11 @@
28 28 *
29 29 */
30 30  
  31 + /**
  32 + * @brief V3270 Widget test program.
  33 + *
  34 + */
  35 +
31 36 #include <v3270.h>
32 37 #include <v3270/filetransfer.h>
33 38 #include <v3270/ftprogress.h>
... ... @@ -42,7 +47,7 @@ static gboolean popup_menu(GtkWidget *widget, G_GNUC_UNUSED gboolean selected, g
42 47  
43 48 GtkWidget * dialog = v3270ft_new();
44 49  
45   - v3270ft_load(dialog,"transfer.xml");
  50 + // v3270ft_load(dialog,"transfer.xml");
46 51  
47 52 gtk_window_set_transient_for(GTK_WINDOW(dialog),GTK_WINDOW(gtk_widget_get_toplevel(widget)));
48 53  
... ... @@ -94,6 +99,8 @@ static void activate(GtkApplication* app, G_GNUC_UNUSED gpointer user_data) {
94 99 // gchar * filename = NULL;
95 100 GValue val = G_VALUE_INIT;
96 101  
  102 + lib3270_toggle(v3270_get_session(terminal),LIB3270_TOGGLE_DS_TRACE);
  103 +
97 104 const gchar *url = getenv("LIB3270_DEFAULT_HOST");
98 105 if(url) {
99 106  
... ...
src/v3270/iocallback.c
... ... @@ -63,7 +63,7 @@ static void static_RemoveSource(G_GNUC_UNUSED H3270 *session, void *id)
63 63 g_source_destroy((GSource *) id);
64 64 }
65 65  
66   -static void static_SetSourceState(H3270 *session, void *id, int enabled)
  66 +static void static_SetSourceState(G_GNUC_UNUSED H3270 *session, G_GNUC_UNUSED void *id, G_GNUC_UNUSED int enabled)
67 67 {
68 68  
69 69 }
... ...
src/v3270/keyboard.c
... ... @@ -54,6 +54,9 @@
54 54 #define GDK_NUMLOCK_MASK GDK_MOD2_MASK
55 55 #endif
56 56  
  57 +#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  58 +#pragma GCC diagnostic ignored "-Wsign-compare"
  59 +
57 60 /*--[ Globals ]--------------------------------------------------------------------------------------*/
58 61  
59 62 static struct _keycode
... ...
src/v3270/mouse.c
... ... @@ -37,6 +37,7 @@
37 37 #include <lib3270/log.h>
38 38 #include <lib3270/trace.h>
39 39  
  40 + #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
40 41  
41 42 /*--[ Globals ]--------------------------------------------------------------------------------------*/
42 43  
... ...
src/v3270/oia.c
... ... @@ -106,7 +106,7 @@ static gint draw_spinner(cairo_t *cr, GdkRectangle *r, GdkRGBA *color, gint step
106 106  
107 107 debug("%s step=%d",__FUNCTION__,step);
108 108  
109   - for (i = 0; i < num_steps; i++)
  109 + for (i = 0; i < ((gint) num_steps); i++)
110 110 {
111 111 gint inset = 0.7 * radius;
112 112  
... ...
src/v3270/private.h
... ... @@ -235,8 +235,8 @@ G_BEGIN_DECLS
235 235  
236 236 G_GNUC_INTERNAL struct _v3270_properties
237 237 {
238   - size_t count; // Number of properties.
239   - GParamSpec **toggle; // Toggle properties.
  238 + size_t count; // Number of properties.
  239 + GParamSpec * toggle[LIB3270_TOGGLE_COUNT]; // Toggle properties.
240 240  
241 241 struct
242 242 {
... ...
src/v3270/properties.c
... ... @@ -214,8 +214,8 @@
214 214 for(ix = 0; ix < LIB3270_TOGGLE_COUNT; ix++)
215 215 {
216 216 debug("Property %u=%s (Toggle)",(unsigned int) v3270_properties.type.toggle + ix, lib3270_get_toggle_name(ix));
217   - spec = g_param_spec_boolean(lib3270_get_toggle_name(ix),lib3270_get_toggle_name(ix),lib3270_get_toggle_description(ix),FALSE,G_PARAM_WRITABLE|G_PARAM_READABLE);
218   - v3270_install_property(gobject_class, v3270_properties.type.toggle + ix, spec);
  217 + v3270_properties.toggle[ix] = g_param_spec_boolean(lib3270_get_toggle_name(ix),lib3270_get_toggle_name(ix),lib3270_get_toggle_description(ix),FALSE,G_PARAM_WRITABLE|G_PARAM_READABLE);
  218 + v3270_install_property(gobject_class, v3270_properties.type.toggle + ix, v3270_properties.toggle[ix]);
219 219 }
220 220  
221 221  
... ...
src/v3270/security.c
... ... @@ -29,6 +29,8 @@
29 29  
30 30 #include <config.h>
31 31  
  32 + #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  33 +
32 34 #define ENABLE_NLS
33 35 #define GETTEXT_PACKAGE PACKAGE_NAME
34 36  
... ...
src/v3270/widget.c
... ... @@ -29,6 +29,8 @@
29 29  
30 30 #include <config.h>
31 31  
  32 + #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
  33 +
32 34 #define ENABLE_NLS
33 35 #define GETTEXT_PACKAGE PACKAGE_NAME
34 36  
... ...