mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 02:01:18 -04: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:
committed by
Namhyung Kim
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user