diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-04 15:00:15 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-04 15:00:15 +0100 |
commit | 98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (patch) | |
tree | 2d9c07825697cd7c6e96647ff0992dce4d4a0115 /editors | |
parent | 1821d188ca674b42bf0f384b0c2332ff95701bba (diff) | |
download | busybox-w32-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.gz busybox-w32-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.bz2 busybox-w32-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.zip |
*: suppress ~60% of "aliased warnings" on gcc-4.4.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r-- | editors/awk.c | 2 | ||||
-rw-r--r-- | editors/sed.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/editors/awk.c b/editors/awk.c index bc8b0dad1..a6f3f55f7 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -444,7 +444,7 @@ struct globals2 { | |||
444 | 444 | ||
445 | /* biggest and least used members go last */ | 445 | /* biggest and least used members go last */ |
446 | tsplitter fsplitter, rsplitter; | 446 | tsplitter fsplitter, rsplitter; |
447 | }; | 447 | }; //FIX_ALIASING; - large code growth |
448 | #define G1 (ptr_to_globals[-1]) | 448 | #define G1 (ptr_to_globals[-1]) |
449 | #define G (*(struct globals2 *)ptr_to_globals) | 449 | #define G (*(struct globals2 *)ptr_to_globals) |
450 | /* For debug. nm --size-sort awk.o | grep -vi ' [tr] ' */ | 450 | /* For debug. nm --size-sort awk.o | grep -vi ' [tr] ' */ |
diff --git a/editors/sed.c b/editors/sed.c index fd9dd1be6..e5e187725 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -117,7 +117,7 @@ struct globals { | |||
117 | int idx; /* Space used */ | 117 | int idx; /* Space used */ |
118 | int len; /* Space allocated */ | 118 | int len; /* Space allocated */ |
119 | } pipeline; | 119 | } pipeline; |
120 | }; | 120 | } FIX_ALIASING; |
121 | #define G (*(struct globals*)&bb_common_bufsiz1) | 121 | #define G (*(struct globals*)&bb_common_bufsiz1) |
122 | void BUG_sed_globals_too_big(void); | 122 | void BUG_sed_globals_too_big(void); |
123 | #define INIT_G() do { \ | 123 | #define INIT_G() do { \ |