aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-05 20:25:00 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-05 20:25:00 -0400
commit8bc6f2c71d68ecff2e82e5ff8bff042ce4f13463 (patch)
tree76c6c16ad755787c89231d30150432329c36557b
parent758acbc65fe52f8ac364e61c5d2d2b73083b1fe6 (diff)
downloadrunes-8bc6f2c71d68ecff2e82e5ff8bff042ce4f13463.tar.gz
runes-8bc6f2c71d68ecff2e82e5ff8bff042ce4f13463.zip
more compiler warnings
-rw-r--r--Makefile4
-rw-r--r--runes.c3
-rw-r--r--runes.h2
-rw-r--r--xlib.c2
4 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2ab83c0..93bbf3f 100644
--- a/Makefile
+++ b/Makefile
@@ -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)
diff --git a/runes.c b/runes.c
index 6ae04bc..fac77b9 100644
--- a/runes.c
+++ b/runes.c
@@ -7,6 +7,9 @@ int main (int argc, char *argv[])
{
RunesTerm *t;
+ UNUSED(argc);
+ UNUSED(argv);
+
setlocale(LC_ALL, "");
t = runes_term_create();
diff --git a/runes.h b/runes.h
index 36a905a..b73d3d6 100644
--- a/runes.h
+++ b/runes.h
@@ -15,4 +15,6 @@ typedef struct runes_window RunesWindow;
#include "xlib.h"
+#define UNUSED(x) ((void)x)
+
#endif
diff --git a/xlib.c b/xlib.c
index 94d267b..904ee4f 100644
--- a/xlib.c
+++ b/xlib.c
@@ -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;