From 98a4c7cf3d799ab953cb77e8b34597c73e3e7335 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 4 Feb 2010 15:00:15 +0100 Subject: *: suppress ~60% of "aliased warnings" on gcc-4.4.1 Signed-off-by: Denys Vlasenko --- editors/awk.c | 2 +- editors/sed.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'editors') 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 { /* biggest and least used members go last */ tsplitter fsplitter, rsplitter; -}; +}; //FIX_ALIASING; - large code growth #define G1 (ptr_to_globals[-1]) #define G (*(struct globals2 *)ptr_to_globals) /* 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 { int idx; /* Space used */ int len; /* Space allocated */ } pipeline; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) void BUG_sed_globals_too_big(void); #define INIT_G() do { \ -- cgit v1.2.3