Description: Fix flex readable_form prototype mismatch with its definition
 The bundled flex source declares 'char *readable_form();' with an empty
 parameter list while the definition is 'char *readable_form(int c)'.
 Newer GCC defaults to C23 semantics where '()' means a prototype with no
 arguments, so calling readable_form(i) fails with
 "error: too many arguments to function". Declare the parameter explicitly.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: other
Forwarded: not-needed
Last-Update: 2026-09-02

--- epics-base-7.0.7+dfsg1.orig/modules/libcom/src/flex/ccl.c
+++ epics-base-7.0.7+dfsg1/modules/libcom/src/flex/ccl.c
@@ -132,7 +132,7 @@ void cclnegate(int cclp)
 void list_character_set(FILE *file, int cset[])
 {
     int i;
-    char *readable_form();
+    char *readable_form(int);
 
     putc( '[', file );
 
--- epics-base-7.0.7+dfsg1.orig/modules/libcom/src/flex/gen.c
+++ epics-base-7.0.7+dfsg1/modules/libcom/src/flex/gen.c
@@ -237,7 +237,7 @@ void genecs(void)
 
     if ( trace )
         {
-        char *readable_form();
+        char *readable_form(int);
 
         fputs( "\n\nEquivalence Classes:\n\n", stderr );
