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 --- runit/runsv.c | 2 +- runit/runsvdir.c | 2 +- runit/sv.c | 2 +- runit/svlogd.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'runit') diff --git a/runit/runsv.c b/runit/runsv.c index 48b83960d..5b221e90a 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 f6aaeb7d4..71fde757e 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 ) diff --git a/runit/sv.c b/runit/sv.c index 96ebb749d..3f76a2d47 100644 --- a/runit/sv.c +++ b/runit/sv.c @@ -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 f556c7db5..fc8b4abb9 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 ) -- cgit v1.2.3