From dd6121dd4d9218b29f1544d244c2622f6a502a18 Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Mon, 1 Jan 2024 12:22:46 +0100 Subject: 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 --- src/gram.y | 1 + src/twm.h | 3 --- 2 files changed, 1 insertion(+), 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[]; -- cgit v1.2.3