add -Wconversion

This commit is contained in:
Daniel Micay 2012-06-01 05:42:05 -04:00
parent 69b0dc99f1
commit e1960f0892
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ CFLAGS += -std=c99 -O3 \
-Wshadow \ -Wshadow \
-Wformat=2 \ -Wformat=2 \
-Wmissing-declarations \ -Wmissing-declarations \
-Wconversion \
$(shell pkg-config --cflags ${GTK} ${VTE}) $(shell pkg-config --cflags ${GTK} ${VTE})
LDFLAGS += -s -Wl,--as-needed $(shell pkg-config --libs ${GTK} ${VTE}) LDFLAGS += -s -Wl,--as-needed $(shell pkg-config --libs ${GTK} ${VTE})

View File

@ -114,7 +114,7 @@ static char *check_match(VteTerminal *vte, int event_x, int event_y) {
} }
static gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event) { static gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event) {
char *match = check_match(vte, event->x, event->y); char *match = check_match(vte, (int)event->x, (int)event->y);
if (event->button == 1 && event->type == GDK_BUTTON_PRESS && match != NULL) { if (event->button == 1 && event->type == GDK_BUTTON_PRESS && match != NULL) {
const char *argv[] = URL_COMMAND(match); const char *argv[] = URL_COMMAND(match);
g_spawn_async(NULL, (char **)argv, NULL, 0, NULL, NULL, NULL, NULL); g_spawn_async(NULL, (char **)argv, NULL, 0, NULL, NULL, NULL, NULL);