diff options
| author | Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com> | 2025-12-06 14:28:25 +0500 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2025-12-09 23:23:21 -0800 |
| commit | d70f79fef65810faf64dbae1f3a1b5623cdb2345 (patch) | |
| tree | edfe083f619141082893eac6a126b5f6273fd763 /Documentation/filesystems/caching/git: | |
| parent | 639f58a0f4808e78ff6c764747ee125c0e2f093c (diff) | |
libbpf: Fix -Wdiscarded-qualifiers under C23
glibc ≥ 2.42 (GCC 15) defaults to -std=gnu23, which promotes
-Wdiscarded-qualifiers to an error.
In C23, strstr() and strchr() return "const char *".
Change variable types to const char * where the pointers are never
modified (res, sym_sfx, next_path).
Suggested-by: Florian Weimer <fweimer@redhat.com>
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Mikhail Gavrilov <mikhail.v.gavrilov@gmail.com>
Link: https://lore.kernel.org/r/20251206092825.1471385-1-mikhail.v.gavrilov@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation/filesystems/caching/git:')
0 files changed, 0 insertions, 0 deletions
