diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex
index b6af3a23696e79f6b81ba0091056e7b1e1a748b8..a217652e2c3977c76203dbc8bc996849c59259a4 100644
--- a/pbx/ael/ael.flex
+++ b/pbx/ael/ael.flex
@@ -536,9 +536,7 @@ static int pbcpop(char x)
 	return 1; /* error */
 }
 
-/* used by the bison code */
-int c_prevword(void);
-int c_prevword(void)
+static int c_prevword(void)
 {
 	char *c = prev_word;
 	int ret = 0;
diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c
index ba8f2e09007151578a945e48b53cbd210af971a4..56ffed49febaaaa26b4f1f760ba576deea272ae0 100644
--- a/pbx/ael/ael_lex.c
+++ b/pbx/ael/ael_lex.c
@@ -2872,9 +2872,7 @@ static int pbcpop(char x)
 	return 1; /* error */
 }
 
-/* used by the bison code */
-int c_prevword(void);
-int c_prevword(void)
+static int c_prevword(void)
 {
 	char *c = prev_word;
 	int ret = 0;