Commit 2d0719fec2a8a66a57500fb2963779914a58d549

Authored by Perry Werneck
1 parent 1d4ff340

Removendo warnings durante a compilação.

src/java/dialog.cc
... ... @@ -39,7 +39,7 @@ JNIEXPORT jint JNICALL Java_pw3270_terminal_popup_1dialog(JNIEnv *env, jobject o
39 39 const char * title = env->GetStringUTFChars(j_title, 0);
40 40 const char * message = env->GetStringUTFChars(j_message, 0);
41 41 const char * secondary = env->GetStringUTFChars(j_secondary, 0);
42   - jint rc;
  42 + jint rc = -1;
43 43  
44 44 try {
45 45  
... ... @@ -68,7 +68,6 @@ JNIEXPORT jstring JNICALL Java_pw3270_terminal_file_1chooser_1dialog(JNIEnv *env
68 68 const char * title = env->GetStringUTFChars(j_title, 0);
69 69 const char * extension = env->GetStringUTFChars(j_extension, 0);
70 70 const char * filename = env->GetStringUTFChars(j_filename, 0);
71   - jint rc;
72 71  
73 72 try {
74 73  
... ...
src/pw3270/v3270/mouse.c
... ... @@ -91,6 +91,9 @@ static void single_click(v3270 *widget, int baddr)
91 91  
92 92 static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr)
93 93 {
  94 + #pragma GCC diagnostic push
  95 + #pragma GCC diagnostic ignored "-Wswitch"
  96 +
94 97 switch(type)
95 98 {
96 99 case GDK_BUTTON_PRESS: // Single click - set mode
... ... @@ -112,6 +115,9 @@ static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr)
112 115 trace("Unexpected button 1 type %d",type);
113 116 #endif
114 117 }
  118 +
  119 + #pragma GCC diagnostic pop
  120 +
115 121 }
116 122  
117 123 void v3270_emit_popup(v3270 *widget, int baddr, GdkEventButton *event)
... ...
src/pw3270/v3270ft/select.c
... ... @@ -81,7 +81,7 @@ gchar * v3270ft_select_file(v3270ft *dialog, const gchar *title, const gchar *bu
81 81 GtkFileChooserNative *native = gtk_file_chooser_native_new
82 82 (
83 83 title,
84   - GTK_WIDGET(dialog),
  84 + GTK_WINDOW(dialog),
85 85 action,
86 86 button,
87 87 _( "_Cancel" )
... ...