This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Top-of-tree GCC/glibc build problem


Looks like we have another new warning that is blocking top-of-tree glibc
from being built with top-of-tree gcc.  Would using 'cp[0]' instead of '*cp'
be the right fix here?

Steve Ellcey
sellcey@marvell.com


zic.c: In function ‘inzsub’:
zic.c:1369:23: error: writing 8 bytes into a region of size 1 [-Werror=stringop-
overflow=]
 1369 |  z.z_format_specifier = cp ? *cp : '\0';
      |  ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
zic.c:124:8: note: destination object declared here
  124 |  char  z_format_specifier;
      |        ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
../o-iterator.mk:9: recipe for target '/home/sellcey/tot/obj-glibc/timezone/zic.
o' failed
make[2]: *** [/home/sellcey/tot/obj-glibc/timezone/zic.o] Error 1
make[2]: Leaving directory '/home/sellcey/tot/glibc/timezone'
Makefile:429: recipe for target 'timezone/others' failed
make[1]: *** [timezone/others] Error 2
make[1]: Leaving directory '/home/sellcey/tot/glibc'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2
ERROR: glibc build failed

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]