https://sourceware.org/bugzilla/show_bug.cgi?id=27722
Bug ID: 27722
Summary: ld/libdep_plugin.c:142:19: error: array subscript has
type ‘char’ [-Werror=char-subscripts]
Product: binutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: sdanyyil at yahoo dot com
Target Milestone: ---
I have to add
#pragma GCC diagnostic warning "-Wuninitialized"
to the file for gcc to compile it.
Error Message:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../ld -I. -I../../ld -I../bfd
-I../../ld/../bfd -I../../ld/../include -I../../ld/../zlib -I./../intl -g -O2
-DLOCALEDIR=\"/usr/local/share/locale\" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Werror
-DELF_LIST_OPTIONS=false -DELF_SHLIB_LIST_OPTIONS=false
-DELF_PLT_UNWIND_LIST_OPTIONS=false -g -O2 -MT libdep_plugin.lo -MD -MP -MF
.deps/libdep_plugin.Tpo -c ../../ld/libdep_plugin.c -o libdep_plugin.o
In file included from ../../ld/libdep_plugin.c:26:
../../ld/libdep_plugin.c: In function ‘str2vec’:
../../ld/libdep_plugin.c:142:19: error: array subscript has type ‘char’
[-Werror=char-subscripts]
142 | while (isspace (*s)) s++;
| ^~
../../ld/libdep_plugin.c:166:20: error: array subscript has type ‘char’
[-Werror=char-subscripts]
166 | if (isspace (*s))
| ^~
../../ld/libdep_plugin.c:171:20: error: array subscript has type ‘char’
[-Werror=char-subscripts]
171 | while (isspace (*s)) s++;
| ^~
--
You are receiving this mail because:
You are on the CC list for the bug.