viscal

cairo/gtk vi-like timeblocking calendar
git clone git://jb55.com/viscal
Log | Files | Refs | README | LICENSE

commit 8abba4245fe60879e1445d739691df7cb448fed0
parent 1f9a97c64d57d158c2e6510ca28514ff7a28e639
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 30 Nov 2018 09:24:26 -0800

misc: fix some warnings

Diffstat:
Mviscal.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/viscal.c b/viscal.c @@ -92,6 +92,8 @@ struct event { // used for temporary storage when editing summaries, descriptions, etc static char g_editbuf[EDITBUF_MAX] = {0}; static int g_editbuf_pos = 0; + +// TODO: move or remove g_cal_tz static icaltimezone *g_cal_tz; struct cal { @@ -490,7 +492,6 @@ static void calendar_refresh_events(struct cal *cal) { } - static int on_state_change(GtkWidget *widget, GdkEvent *ev, gpointer user_data) { struct extra_data *data = (struct extra_data*)user_data; struct cal *cal = data->cal; @@ -792,6 +793,7 @@ static void align_down(struct cal *cal) /* assert(!"implement me"); */ struct event *event = get_selected_event(cal); + (void)event; } static void align_up(struct cal *cal) @@ -799,6 +801,7 @@ static void align_up(struct cal *cal) /* assert(!"implement me"); */ struct event *event = get_selected_event(cal); + (void)event; } static void align_hour(struct cal *cal)