summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Wiederhake <twied@gmx.net>2024-01-01 12:22:46 +0100
committerTim Wiederhake <twied@gmx.net>2024-01-01 12:22:46 +0100
commitdd6121dd4d9218b29f1544d244c2622f6a502a18 (patch)
tree7ca64fbff1450fe9f211933993af2f69b39a7758
parent3a4cc8b4b2baeb6b2e043c25495aede08a649641 (diff)
Remove redundant declaration of yylex
yylex is already declared in (the generated) lex.c. This silences a "redundant redeclaration of 'yylex'" warning. Signed-off-by: Tim Wiederhake <twied@gmx.net>
-rw-r--r--src/gram.y1
-rw-r--r--src/twm.h3
2 files changed, 1 insertions, 3 deletions
diff --git a/src/gram.y b/src/gram.y
index 791e60f..a738f88 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -101,6 +101,7 @@ int mods = 0;
unsigned int mods_used = (ShiftMask | ControlMask | Mod1Mask);
extern int yylineno;
+extern int yylex(void);
static void yyerror(const char *s);
%}
diff --git a/src/twm.h b/src/twm.h
index a7793da..8786ad2 100644
--- a/src/twm.h
+++ b/src/twm.h
@@ -416,9 +416,6 @@ extern Bool RestartPreviousState;
extern Bool
GetWMState(Window w, int *statep, Window *iwp);
-extern int
-yylex(void);
-
extern void parseWarning(const char *, ...) GCC_PRINTFLIKE(1,2);
extern Atom TwmAtoms[];