[PATCH] Fix the strrchr error for DOS based filesystem
Alan Modra
amodra@gmail.com
Sun May 3 02:57:54 GMT 2026
On Sun, May 03, 2026 at 08:32:51AM +0800, H.J. Lu wrote:
> Calvin's patch has been checked in. Here is another one for DOS based
> filesystem:
Well, one of them was.
> Fix the strrchr error like:
>
> gprof/source.c:130:28: error: initialization discards ‘const’
> qualifier from pointer target type [-Werror=discarded-qualifiers]
> 130 | char *bslash = strrchr (sf->name, '\\');
>
> binutils/
>
> * bucomm.c (template_in_dir): Make bslash const char *.
>
> gprof/
>
> * source.c (annotate_source): Make bslash const char *.
Please commit.
--
Alan Modra
More information about the Binutils
mailing list