From 4fbecf3468576f5033d2a5de02cec137242e8d3c Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Tue, 20 Sep 2016 17:05:14 -0300 Subject: [PATCH] Removendo warnings durante a compilação. --- mouse.c | 6 ++++++ 1 file changed, 6 insertions(+), 0 deletions(-) diff --git a/mouse.c b/mouse.c index b3035f4..ae7447c 100644 --- a/mouse.c +++ b/mouse.c @@ -91,6 +91,9 @@ static void single_click(v3270 *widget, int baddr) static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr) { + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wswitch" + switch(type) { case GDK_BUTTON_PRESS: // Single click - set mode @@ -112,6 +115,9 @@ static void button_1_press(GtkWidget *widget, GdkEventType type, int baddr) trace("Unexpected button 1 type %d",type); #endif } + + #pragma GCC diagnostic pop + } void v3270_emit_popup(v3270 *widget, int baddr, GdkEventButton *event) -- libgit2 0.21.2