From 30b76a1f93a79d7c88c510b53143bfbf146efbd6 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 5 Dec 2022 15:39:07 -0500 Subject: Warning cleanup --- config.mk | 2 +- dwm.c | 5 ++--- movestack.c | 3 ++- vanitygaps.c | 3 ++- 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 +} + -- cgit v1.2.3