1
0

fix some compiler warnings

This commit is contained in:
Deven Blake 2021-05-16 10:06:08 -04:00
parent c3e36e8049
commit a690038da5

View File

@ -26,8 +26,6 @@
#include "drw.h"
#include "util.h"
#define BREAK_ON_EOF 0
/* macros */
#define INTERSECT(x,y,w,h,r) (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \
* MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org)))
@ -58,9 +56,6 @@ static Clr *scheme[SchemeLast];
#include "config.h"
static int (*fstrncmp)(const char *, const char *, size_t) = strncmp;
static char *(*fstrstr)(const char *, const char *) = strstr;
static void
cleanup(void)
{
@ -73,10 +68,16 @@ cleanup(void)
XCloseDisplay(dpy);
}
int
textw(char *text) /* figure out how to remove me */
{
return (text && *text) ? TEXTW(text) - lrpad / 4 : 0;
}
static void
drawmenu(char *text)
{
int x = 0, y = 0, w;
int x = 0;
drw_setscheme(drw, scheme[Scheme]);
drw_rect(drw, 0, 0, mw, mh, 1, 1);
@ -87,12 +88,6 @@ drawmenu(char *text)
drw_map(drw, win, 0, 0, mw, mh);
}
int
textw(char *text) /* figure out how to remove me */
{
return (text && *text) ? TEXTW(text) - lrpad / 4 : 0;
}
/* I don't know how anyting here works */
static void
setup(void)