glibc/locale/programs
Florian Weimer 1471fa556a localedef: Use initializer for flexible array member [BZ #24950]
struct charseq used a zero-length array instead of a flexible array
member.  This required a strange construct to initialize struct
charseq objects, and GCC 10 warns about that:

cc1: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
In file included from programs/repertoire.h:24,
                 from programs/localedef.h:32,
                 from programs/ld-ctype.c:35:
programs/charmap.h:63:17: note: destination object declared here
   63 |   unsigned char bytes[0];
      |                 ^~~~~
cc1: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
programs/charmap.h:63:17: note: destination object declared here
cc1: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
programs/charmap.h:63:17: note: destination object declared here
cc1: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
programs/charmap.h:63:17: note: destination object declared here

The change makes the object physically const, but it is not expected
to be modified.
2019-09-03 14:01:47 +02:00
..
3level.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-dir.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-dir.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-kw.gperf Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap-kw.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
charmap.c Add fall-through comments. 2019-02-12 10:30:34 +00:00
charmap.h localedef: Use initializer for flexible array member [BZ #24950] 2019-09-03 14:01:47 +02:00
config.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-address.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-collate.c Fix parentheses error in iconvconfig.c and ld-collate.c [BZ #24372] 2019-03-21 17:53:03 -03:00
ld-ctype.c localedef: Use initializer for flexible array member [BZ #24950] 2019-09-03 14:01:47 +02:00
ld-identification.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-measurement.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-messages.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-monetary.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-name.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-numeric.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-paper.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-telephone.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ld-time.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
linereader.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
linereader.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locale-spec.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locale.c locale: Add LOCPATH diagnostics to the locale program 2019-04-23 18:16:26 +02:00
localedef.c Update copyright dates not handled by scripts/update-copyrights. 2019-01-01 00:15:13 +00:00
localedef.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locarchive.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-kw.gperf Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-kw.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile-token.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
locfile.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
record-status.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
record-status.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
repertoire.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
repertoire.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
simple-hash.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
simple-hash.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
xmalloc.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
xstrdup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00