warning cleanup if !USECONFIG

This commit is contained in:
speedie 2023-04-25 17:58:50 +02:00
parent b2e933e1a9
commit 0457a53478
3 changed files with 4 additions and 1 deletions

View file

@ -31,7 +31,6 @@ check() {
loadconf() {
[ -x "buildconf" ] && source buildconf
[ -x "buildconf_script" ] && source buildconf_script
# mandatory deps
[ "$freetype" = "false" ] && printf "Freetype not found. Install it.\n" && exit 1

View file

@ -6,6 +6,7 @@ typedef struct {
Arg arg;
} Key;
#if USECONFIG
typedef struct {
char *key;
KeySym keysym;
@ -509,6 +510,7 @@ static KeyList kl[] = {
{ "Next", XK_Next },
{ "Prior", XK_Prior },
};
#endif
static void updatenumlockmask(void);
static void keypress(XEvent *e);

View file

@ -20,6 +20,7 @@ typedef struct {
Arg arg;
} Mouse;
#if USECONFIG
typedef struct {
char *click;
unsigned int button;
@ -50,6 +51,7 @@ static ClickType ctp[] = {
{ "clickcaps", clickcaps },
{ "clickmode", clickmode },
};
#endif
static Mouse cbuttons[256];
static void buttonpress(XEvent *e);