mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 20:14:06 +02:00
perf symbols: Make variable receiving result strrchr() const
Fixing:
util/symbol.c: In function ‘symbol__config_symfs’:
util/symbol.c:2499:20: error: assignment discards ‘const’ qualifier from pointer target type [-Werror=discarded-qualifiers]
2499 | layout_str = strrchr(dir, ',');
|
With recent gcc/glibc.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
f552b132e4
commit
d3e01be6da
|
|
@ -2493,7 +2493,7 @@ int symbol__config_symfs(const struct option *opt __maybe_unused,
|
|||
const char *dir, int unset __maybe_unused)
|
||||
{
|
||||
char *bf = NULL;
|
||||
char *layout_str;
|
||||
const char *layout_str;
|
||||
char *dir_copy;
|
||||
int ret;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user