From 78c9bafd1579ca4949f65bbcdb138618340a66a3 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 1 Jun 2012 08:29:18 -0400 Subject: [PATCH] more nice warnings --- Makefile | 3 +++ termite.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a4bed47..3b7a8b3 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ CFLAGS += -std=c99 -O3 \ -Wshadow \ -Wformat=2 \ -Wmissing-declarations \ + -Wstrict-overflow=5 \ + -Wcast-align \ + -Wcast-qual \ -Wconversion \ $(shell pkg-config --cflags ${GTK} ${VTE}) diff --git a/termite.c b/termite.c index 6eb153d..709092d 100644 --- a/termite.c +++ b/termite.c @@ -117,8 +117,8 @@ 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, (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); + char *argv[] = URL_COMMAND(match); + g_spawn_async(NULL, argv, NULL, 0, NULL, NULL, NULL, NULL); g_free(match); return TRUE; }