Commit 9389e31
libbpf: fix const correctness in resolve_full_path for gcc15
gcc 15's C library headers use _Generic to return const char * from
strchr() when passed a const char * input. With -Werror=discarded-
qualifiers, assigning this to a char * fails.
next_path only uses the pointer for arithmetic to calculate segment
length, never modifies the string. const char * is the correct type.
Signed-off-by: EvilOlaf <evilolaf@users.noreply.github.com>1 parent 3b59f44 commit 9389e31
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10738 | 10738 | | |
10739 | 10739 | | |
10740 | 10740 | | |
10741 | | - | |
| 10741 | + | |
10742 | 10742 | | |
10743 | 10743 | | |
10744 | 10744 | | |
| |||
0 commit comments