pomodoro

A simple pomodoro timer
git clone git://nocebo.space/pomodoro
Log | Files | Refs | LICENSE

commit a6e8fd2403d272adabe1d8c305e06488dd8675a7
parent 134b9b3f4295d0cd478531c82ac62d731d600648
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  9 Dec 2017 14:52:27 +0100

fix evpredicate() prototype warning

add (void) to suppress warnnings for unused variables

Diffstat:
pomodoro.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/pomodoro.c b/pomodoro.c @@ -32,7 +32,7 @@ extern char *optarg; void usage(void); void take_break(unsigned int); -Bool evpredicate(void); +Bool evpredicate(Display *, XEvent *, XPointer); void record(FILE *); int @@ -218,8 +218,12 @@ take_break(unsigned int bp) } Bool -evpredicate(void) +evpredicate(Display *dpy, XEvent *ev, XPointer p) { + (void)dpy; + (void)ev; + (void)p; + return True; } @@ -241,4 +245,3 @@ record(FILE *f) fprintf(stderr, "%s\n", timestamp); fprintf(f, "%s\n", timestamp); } -