aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--src/config.c1
-rw-r--r--src/event.c2
-rw-r--r--src/window.c12
4 files changed, 3 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index 493708f..796df02 100644
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,9 @@ PCDEP = xcb \
xcb-shape \
xcb-errors \
"xcb-randr >= 1.5" \
- "glib-2.0 >= 2.44" \
- gio-2.0 \
- json-glib-1.0 \
pangocairo
-CFLAGS := $(shell pkg-config --cflags $(PCDEP)) -Werror
+CFLAGS := $(shell pkg-config --cflags $(PCDEP)) -Wall -Werror
LDFLAGS := $(shell pkg-config --libs $(PCDEP)) -lm
ifdef RELEASE
diff --git a/src/config.c b/src/config.c
index d676a41..55dd133 100644
--- a/src/config.c
+++ b/src/config.c
@@ -162,7 +162,6 @@ void config_init(config_t *config, FILE *file)
char *key;
while ((key = any_ini_stream_next_key(&ini)) != NULL) {
- int line = ini.line;
char *value = any_ini_stream_next_value(&ini);
log_value_trace("Reading config entry",
diff --git a/src/event.c b/src/event.c
index 4f5a73f..293dec9 100644
--- a/src/event.c
+++ b/src/event.c
@@ -84,6 +84,7 @@ void event_dispatch(display_t *display, layout_t *layout)
log_trace("Processing 'Expose' event");
// Redraw
+ (void)expose;
break;
}
@@ -92,6 +93,7 @@ void event_dispatch(display_t *display, layout_t *layout)
log_trace("Processing 'CreateNotify' event");
// TODO: Circulate top the window if override_redirect == 0
+ (void)create;
break;
}
diff --git a/src/window.c b/src/window.c
index 55ebfe2..813fb4b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -18,18 +18,6 @@
#include "any_log.h"
#include "window.h"
-static xcb_atom_t intern_atom(window_t *window, const char *atom)
-{
- xcb_generic_error_t *error;
- xcb_intern_atom_cookie_t cookie = xcb_intern_atom(window->display->connection, false, strlen(atom), atom);
- xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(window->display->connection, cookie, &error);
-
- assert(error == NULL);
- xcb_atom_t id = reply->atom;
- free(reply);
- return id;
-}
-
static void wm_set_size(window_t *window)
{
xcb_size_hints_t hints = { 0 };