aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2020-07-14 05:00:08 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2020-07-14 05:00:08 +0000
commit85c904857339abef41d2293ac99280a501626750 (patch)
treefb5c309bce20bcf6628b7d834a769cd82c1b7eee
parentb53bb29fed3e69c2561e93c1aee32b92ffe9117f (diff)
downloadsrc-85c904857339abef41d2293ac99280a501626750.tar.gz
src-85c904857339abef41d2293ac99280a501626750.zip
[flex] Fix compilation issue under mips-gcc-6.4
This was triggering a pointer-losing-constness error.
Notes
Notes: svn path=/head/; revision=363171
-rw-r--r--contrib/flex/src/main.c2
1 files changed, 1 insertions, 1 deletions
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;