Dne 29. 08. 20 v 5:11 heming.zhao@xxxxxxxx napsal(a):
These 3 zero-sized array blocked me to create lvm2 package for opensuse tumbleweed.
Opensuse uses OBS (open build service: https://openbuildservice.org/) to create rpm packages.
In my eyes, the OBS is black-box, it only showed these 3 warning and stopped building work.
So I filed patch only about these 3 places.
the build error just related with [-Wstringop-overflow=]
```
[ 72s] In function 'strcpy',
[ 72s] inlined from '_store_str' at device_mapper/libdm-common.c:1453:2,
[ 72s] inlined from '_stack_node_op' at device_mapper/libdm-common.c:1589:2:
[ 72s] /usr/include/bits/string_fortified.h:90:10: warning: '__builtin_strcpy' writing 1 or more bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
[ 72s] 90 | return __builtin___strcpy_chk (__dest, __src, __bos (__dest));
```
Hi
So patches have've been pushed into master HEAD - so maybe you can try to
validate whether this changes things for your builder server - we can then
consider backporting to stable-2.0 branch.
Regards
Zdenek
_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/