more nice warnings

This commit is contained in:
Daniel Micay 2012-06-01 08:29:18 -04:00
parent ad5c8c97e4
commit 78c9bafd15
2 changed files with 5 additions and 2 deletions

View File

@ -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})

View File

@ -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;
}