Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

-Wrestrict warning on cc 8.3.0



Hello all,

During a make of the latest master I got the following warning:

gcc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I.  -DHAVE_CONFIG_H
-DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o compctl..o compctl.c
compctl.c: In function ‘makecomplistflags.isra.6’:
compctl.c:3340:7: warning: ‘strcpy’ accessing 1 byte at offsets [0,
9223372036854775807] and [0,9223372036854775807] may overlap 1 byte at
offset 0 [-Wrestrict]
strcpy(p, p + bl);
^~~~~~~~~~~~~~~~~
rm -f compctl.so

Cheers,
Wesley

-- 
Wesley Schwengle, Developer
Mintlab B.V., https://www.zaaksysteem.nl
E: wesley@xxxxxxxxxx
T:  +31 20 737 00 05



Messages sorted by: Reverse Date, Date, Thread, Author