cmdtree

A trie command launcher for X11
git clone git://jb55.com/cmdtree
Log | Files | Refs | README | LICENSE

commit 3689e9073f8f47f8dd14a8e3c6e20bb213e5bf2a
parent 46b673dda91d61d6b18976b6f82ba08573d61357
Author: William Casarin <jb55@jb55.com>
Date:   Mon,  9 Jul 2018 23:18:31 -0700

fix clang build errors

Diffstat:
MMakefile | 4++--
Mdrw.c | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -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 diff --git a/drw.c b/drw.c @@ -179,7 +179,7 @@ drw_setscheme(Drw *drw, Clr *fg, Clr *bg) 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