]> git.ipfire.org Git - thirdparty/gcc.git/commit
lto-plugin.c: c23 compatibility: char * -> const char * master trunk
authorFilip Kastl <fkastl@suse.cz>
Mon, 22 Jun 2026 09:50:31 +0000 (11:50 +0200)
committerFilip Kastl <fkastl@suse.cz>
Mon, 22 Jun 2026 14:06:22 +0000 (16:06 +0200)
commit2918eed569574b0c2136256b9898a3287135a899
treeb911b03e34e4893f8acebc4fbabff4ed35c5715c
parentc5c346c39a9224c52a13d26df4a7813d2e3727f6
lto-plugin.c: c23 compatibility: char * -> const char *

There are two uses of strrchr with const char * parameters in
lto-plugin.c where the result gets assigned to a non-const char *
variable.

Make the variable const char * so that we don't throw away const-ness.
I've seen clang produce warnings about this when compiling lto-plugin.c.

Regtested and bootstrapped on x86_64 linux.

lto-plugin/ChangeLog:

* lto-plugin.c (process_symtab): char *s -> const char *s.
(process_symtab_extension): Ditto.

Signed-off-by: Filip Kastl <fkastl@suse.cz>
lto-plugin/lto-plugin.c