diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-17 00:22:26 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-17 00:22:26 +0000 |
commit | d3612178b71b5c7d66252933c3e5a5980887c4ca (patch) | |
tree | ed281183851ef7f437520fe212efc54dea2faa80 /scripts/config/confdata.c | |
parent | 2570b43e829ccfc0f199fe61aafc24b1bd3fc7b1 (diff) | |
download | busybox-d3612178b71b5c7d66252933c3e5a5980887c4ca.tar.gz |
Patch by Junio C Hamano to workaround a gcc compiler bug.
The construct certain vintages of GCC (the one I have trouble
with is 3.2.3) have trouble with looks like the following:
static struct st a;
static struct st *p = &a;
struct st { int foo; };
static void init(void) { a.foo = 0; }
The problem disappears if we move the struct declaration up to
let the compiler know the shape of the struct before the first
definition uses it, like this:
struct st { int foo; }; /* this has been moved up */
static struct st a;
static struct st *p = &a;
static void init(void) { a.foo = 0; }
Diffstat (limited to 'scripts/config/confdata.c')
0 files changed, 0 insertions, 0 deletions