more nice warnings
This commit is contained in:
parent
ad5c8c97e4
commit
78c9bafd15
3
Makefile
3
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})
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue