From 85c904857339abef41d2293ac99280a501626750 Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Tue, 14 Jul 2020 05:00:08 +0000 Subject: [PATCH] [flex] Fix compilation issue under mips-gcc-6.4 This was triggering a pointer-losing-constness error. --- contrib/flex/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/flex/src/main.c b/contrib/flex/src/main.c index 711e387b1b51..8c57854feb91 100644 --- a/contrib/flex/src/main.c +++ b/contrib/flex/src/main.c @@ -342,7 +342,7 @@ void check_options (void) /* Setup the filter chain. */ output_chain = filter_create_int(NULL, filter_tee_header, headerfilename); if ( !(m4 = getenv("M4"))) { - char *slash; + const char *slash; m4 = M4; if ((slash = strrchr(M4, '/')) != NULL) { m4 = slash+1;