diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-04-05 20:25:00 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-04-05 20:25:00 -0400 |
commit | 8bc6f2c71d68ecff2e82e5ff8bff042ce4f13463 (patch) | |
tree | 76c6c16ad755787c89231d30150432329c36557b | |
parent | 758acbc65fe52f8ac364e61c5d2d2b73083b1fe6 (diff) | |
download | runes-8bc6f2c71d68ecff2e82e5ff8bff042ce4f13463.tar.gz runes-8bc6f2c71d68ecff2e82e5ff8bff042ce4f13463.zip |
more compiler warnings
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | runes.c | 3 | ||||
-rw-r--r-- | runes.h | 2 | ||||
-rw-r--r-- | xlib.c | 2 |
4 files changed, 9 insertions, 2 deletions
@@ -1,7 +1,7 @@ OUT = runes OBJ = runes.o display.o xlib.o term.o -CFLAGS ?= -g -LDFLAGS ?= -g +CFLAGS ?= -g -Wall -Wextra -Werror +LDFLAGS ?= -g -Wall -Wextra -Werror build: $(OUT) @@ -7,6 +7,9 @@ int main (int argc, char *argv[]) { RunesTerm *t; + UNUSED(argc); + UNUSED(argv); + setlocale(LC_ALL, ""); t = runes_term_create(); @@ -15,4 +15,6 @@ typedef struct runes_window RunesWindow; #include "xlib.h" +#define UNUSED(x) ((void)x) + #endif @@ -82,6 +82,8 @@ static void runes_process_event(uv_work_t *req, int status) XEvent *e; RunesWindow *w; + UNUSED(status); + data = ((struct loop_data *)req->data); e = &data->e; w = data->t->w; |