diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-05-26 19:25:06 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-05-26 19:25:06 +0200 |
| commit | d6a91e0ae47b4e1df9a9783c49666e2a7357e277 (patch) | |
| tree | 85f75641c07fbbcd156e5660a9506909a175e860 /lib/namespace | |
| parent | cfafa676408057a7434ec81e5dc15ae0ffba91f2 (diff) | |
| download | plan9front-d6a91e0ae47b4e1df9a9783c49666e2a7357e277.tar.xz | |
cc: set unspecified elements to zero in local variable initializers
the compiler used to skip zero initialization when initializer
list was given not covering unspecified elements. now we zero
all non explicitely initialized elements. for example:
typedef struct F F;
struct F
{
int a;
int b;
int c;
};
void
main(void)
{
char a[16] = { 1, 2, 3 }; /* a[3..15] initialized to zero */
F f = { .b = 1 }; /* f.a, f.c initialized to zero */
}
Diffstat (limited to 'lib/namespace')
0 files changed, 0 insertions, 0 deletions
