Fix C compilation warnings.

This commit is contained in:
Bartek Stalewski 2022-05-18 12:17:02 +02:00
parent 65ea36ee1b
commit d79825447e
2 changed files with 2 additions and 4 deletions

View File

@ -21,7 +21,7 @@
/* 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)))
&& MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org)))
#define LENGTH(X) (sizeof X / sizeof X[0])
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)

View File

@ -1010,8 +1010,6 @@ void
drawbar(Monitor *m)
{
int x, w, tw = 0, stw = 0;
int boxs = drw->fonts->h / 9;
int boxw = drw->fonts->h / 6 + 2;
unsigned int i, occ = 0, urg = 0;
Client *c;
@ -2790,7 +2788,7 @@ getparentprocess(pid_t p)
if (!(f = fopen(buf, "r")))
return 0;
fscanf(f, "%*u %*s %*c %u", &v);
//fscanf(f, "%*u %*s %*c %u", &v);
fclose(f);
#endif /* __linux__*/