mirror of git://sourceware.org/git/glibc.git
elf: Fix clang -Wstring-plus-int on rtld.c
clang issues an warning adding 'const unsigned char' to a string does not append to the string. Use array indexes instead of string addition (it is simpler than add a warning suppression). Reviewed-by: Sam James <sam@gentoo.org>
This commit is contained in:
parent
6eb1d9a9ed
commit
d7dbcab417
|
|
@ -2494,7 +2494,7 @@ Valid options for the LD_DEBUG environment variable are:\n\n");
|
|||
|
||||
for (cnt = 0; cnt < ndebopts; ++cnt)
|
||||
_dl_printf (" %.*s%s%s\n", debopts[cnt].len, debopts[cnt].name,
|
||||
" " + debopts[cnt].len - 3,
|
||||
&" "[debopts[cnt].len - 3],
|
||||
debopts[cnt].helptext);
|
||||
|
||||
_dl_printf ("\n\
|
||||
|
|
|
|||
Loading…
Reference in New Issue