From e1960f089264f8518f0d7f981ccee8c2a3d97c0d Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 1 Jun 2012 05:42:05 -0400 Subject: [PATCH] add -Wconversion --- Makefile | 1 + termite.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ba0bed3..a4bed47 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ CFLAGS += -std=c99 -O3 \ -Wshadow \ -Wformat=2 \ -Wmissing-declarations \ + -Wconversion \ $(shell pkg-config --cflags ${GTK} ${VTE}) LDFLAGS += -s -Wl,--as-needed $(shell pkg-config --libs ${GTK} ${VTE}) diff --git a/termite.c b/termite.c index 6267699..2e00362 100644 --- a/termite.c +++ b/termite.c @@ -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) { - 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) { const char *argv[] = URL_COMMAND(match); g_spawn_async(NULL, (char **)argv, NULL, 0, NULL, NULL, NULL, NULL);