package/localedef: fix gcc-10.0.1 compile
authorPeter Seiderer <ps.report@gmx.net>
Sat, 28 Mar 2020 22:07:49 +0000 (23:07 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 29 Mar 2020 14:19:11 +0000 (16:19 +0200)
commit13cc36dcfee5bdbd963fe335d19a2dc8f3486e62
tree3f9314497d2cc6383f6e922558b087504c0cbfd6
parent01b67fc5dcfed5d47db0dc2eb6ea2adbf7cf1b37
package/localedef: fix gcc-10.0.1 compile

Fixes build woth gcc-10, by backporting an upstream patch:

  programs/ld-ctype.c:855:18: error: array subscript 0 is outside the bounds of an interior zero-length array ‘unsigned char[0]’ [-Werror=zero-length-bounds]
    855 |  replace[0].bytes[0] = '?';
        |  ~~~~~~~~~~~~~~~~^~~

Fixes: #12711
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
[yann.morin.1998@free.fr: slight reword in commit log]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/localedef/2.30-20-g50f20fe506abb8853641006a7b90a81af21d7b91/0003-localedef-Use-initializer-for-flexible-array-member-.patch [new file with mode: 0644]