Applied, thanks!

Etienne Brateau, le jeu. 22 janv. 2026 23:56:32 +0100, a ecrit:
> This fix the error: assignment of read-only location '*(const char 
> *)strrchr(body, 34)'
> by removing the const from parameter as the parameter is modified.
> ---
>  lexxer.l | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lexxer.l b/lexxer.l
> index 6e2234e..64381e4 100644
> --- a/lexxer.l
> +++ b/lexxer.l
> @@ -107,7 +107,7 @@ static struct yysvf *oldYYBegin;
>  #define RSTR_BEGIN yybgin = oldYYBegin;
>  #endif
>  
> -static void doSharp(const char *body); /* process body of # directives */
> +static void doSharp(char *body); /* process body of # directives */
>  %}
>  
>  %Start       Normal String FileName QString SkipToEOL
> @@ -271,7 +271,7 @@ LookFileName(void)
>  }
>  
>  static void
> -doSharp(const char *body)
> +doSharp(char *body)
>  {
>      const char *startName;
>  
> -- 
> 2.52.0
> 
> 

Reply via email to