diff options
author | Denys Vlasenko | 2010-02-04 15:00:15 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-02-04 15:00:15 +0100 |
commit | 98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (patch) | |
tree | 2d9c07825697cd7c6e96647ff0992dce4d4a0115 /runit | |
parent | 1821d188ca674b42bf0f384b0c2332ff95701bba (diff) | |
download | busybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.zip busybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.gz |
*: suppress ~60% of "aliased warnings" on gcc-4.4.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'runit')
-rw-r--r-- | runit/runsv.c | 2 | ||||
-rw-r--r-- | runit/runsvdir.c | 2 | ||||
-rw-r--r-- | runit/sv.c | 2 | ||||
-rw-r--r-- | runit/svlogd.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index 48b8396..5b221e9 100644 --- a/runit/runsv.c +++ b/runit/runsv.c @@ -95,7 +95,7 @@ struct globals { struct fd_pair logpipe; char *dir; struct svdir svd[2]; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define haslog (G.haslog ) #define sigterm (G.sigterm ) diff --git a/runit/runsvdir.c b/runit/runsvdir.c index f6aaeb7..71fde75 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c @@ -58,7 +58,7 @@ struct globals { struct pollfd pfd[1]; unsigned stamplog; #endif -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define sv (G.sv ) #define svdir (G.svdir ) @@ -165,7 +165,7 @@ struct globals { /* "Bernstein" time format: unix + 0x400000000000000aULL */ uint64_t tstart, tnow; svstatus_t svstatus; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define acts (G.acts ) #define service (G.service ) diff --git a/runit/svlogd.c b/runit/svlogd.c index f556c7d..fc8b4ab 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c @@ -184,7 +184,7 @@ struct globals { sigset_t blocked_sigset; }; -#define G (*(struct globals*)ptr_to_globals) +#define G (*ptr_to_globals) #define dir (G.dir ) #define verbose (G.verbose ) #define linemax (G.linemax ) |