summaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-04 14:00:15 (GMT)
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-04 14:00:15 (GMT)
commit98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (patch)
tree2d9c07825697cd7c6e96647ff0992dce4d4a0115 /runit
parent1821d188ca674b42bf0f384b0c2332ff95701bba (diff)
downloadbusybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.zip
busybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.gz
busybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.bz2
*: 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.c2
-rw-r--r--runit/runsvdir.c2
-rw-r--r--runit/sv.c2
-rw-r--r--runit/svlogd.c2
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 )
diff --git a/runit/sv.c b/runit/sv.c
index 96ebb74..3f76a2d 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 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 )