summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-12-05 15:39:07 -0500
committerDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-12-05 15:39:07 -0500
commit30b76a1f93a79d7c88c510b53143bfbf146efbd6 (patch)
tree6b593933698fbde15f3250dbb7c2ca0b6161d409
parentda4475e12268ea27869957fa775dddbb539c110a (diff)
downloaddwm-30b76a1f93a79d7c88c510b53143bfbf146efbd6.tar.gz
Warning cleanup
-rw-r--r--config.mk2
-rw-r--r--dwm.c5
-rw-r--r--movestack.c3
-rw-r--r--vanitygaps.c3
4 files changed, 7 insertions, 6 deletions
diff --git a/config.mk b/config.mk
index 95455fc..a8a04f3 100644
--- a/config.mk
+++ b/config.mk
@@ -28,7 +28,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-r
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
+CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Wno-unused-function -Os ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris
diff --git a/dwm.c b/dwm.c
index 99bccef..37096d8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -976,16 +976,15 @@ drawbar(Monitor *m)
return;
/* draw status first so it can be overdrawn by tags later */
- char *text, *s, ch;
+ char *s, ch;
x = 0;
- for (text = s = stext; *s; s++) {
+ for (s = stext; *s; s++) {
if ((unsigned char)(*s) < ' ') {
ch = *s;
*s = '\0';
tw = m->ww - drawstatusbar(m, bh, stext);
x += tw;
*s = ch;
- text = s + 1;
}
}
diff --git a/movestack.c b/movestack.c
index 520f4ae..c040462 100644
--- a/movestack.c
+++ b/movestack.c
@@ -45,4 +45,5 @@ movestack(const Arg *arg) {
arrange(selmon);
}
-} \ No newline at end of file
+}
+
diff --git a/vanitygaps.c b/vanitygaps.c
index 3f31593..8f6b28b 100644
--- a/vanitygaps.c
+++ b/vanitygaps.c
@@ -806,4 +806,5 @@ tile(Monitor *m)
resize(c, sx, sy, sw - (2*c->bw), (sh / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), 0);
sy += HEIGHT(c) + ih;
}
-} \ No newline at end of file
+}
+