3689e9073f8f47f8dd14a8e3c6e20bb213e5bf2a — William Casarin 10 months ago 46b673d
fix clang build errors
2 files changed, 3 insertions(+), 3 deletions(-)

M Makefile
M drw.c
M Makefile => Makefile +2 -2
@@ 1,6 1,6 @@ - CFLAGS=-O2 -g -lX11 -Wall -Werror -I. -Wno-unused-function
- LDFLAGS=-lXft -lfontconfig
+ CFLAGS=-O2 -g -Wall -Werror -I. -Wno-unused-function
+ LDFLAGS=-lXft -lfontconfig -lX11 
  PREFIX ?= /usr/local
  
  BIN=cmdtree

M drw.c => drw.c +1 -1
@@ 179,7 179,7 @@ void
  drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert)
  {
- 	if (!drw || !drw->scheme)
+ 	if (!drw)
  		return;
  	XSetForeground(drw->dpy, drw->gc,
  		       invert ? drw->scheme[ColBg]->pixel