aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-04 15:00:15 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-04 15:00:15 +0100
commit98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (patch)
tree2d9c07825697cd7c6e96647ff0992dce4d4a0115 /miscutils
parent1821d188ca674b42bf0f384b0c2332ff95701bba (diff)
downloadbusybox-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 'miscutils')
-rw-r--r--miscutils/crond.c2
-rw-r--r--miscutils/dc.c2
-rw-r--r--miscutils/hdparm.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index 7135e4475..ebd48121d 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -94,7 +94,7 @@ struct globals {
94 char *env_var_user; 94 char *env_var_user;
95 char *env_var_home; 95 char *env_var_home;
96#endif 96#endif
97}; 97} FIX_ALIASING;
98#define G (*(struct globals*)&bb_common_bufsiz1) 98#define G (*(struct globals*)&bb_common_bufsiz1)
99#define LogLevel (G.LogLevel ) 99#define LogLevel (G.LogLevel )
100#define LogFile (G.LogFile ) 100#define LogFile (G.LogFile )
diff --git a/miscutils/dc.c b/miscutils/dc.c
index 7348ed349..cb4b1e9b1 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -13,7 +13,7 @@ struct globals {
13 unsigned pointer; 13 unsigned pointer;
14 unsigned base; 14 unsigned base;
15 double stack[1]; 15 double stack[1];
16}; 16} FIX_ALIASING;
17enum { STACK_SIZE = (COMMON_BUFSIZE - offsetof(struct globals, stack)) / sizeof(double) }; 17enum { STACK_SIZE = (COMMON_BUFSIZE - offsetof(struct globals, stack)) / sizeof(double) };
18#define G (*(struct globals*)&bb_common_bufsiz1) 18#define G (*(struct globals*)&bb_common_bufsiz1)
19#define pointer (G.pointer ) 19#define pointer (G.pointer )
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 399b77a4a..9738620fd 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -315,7 +315,7 @@ struct globals {
315#ifdef DO_FLUSHCACHE 315#ifdef DO_FLUSHCACHE
316 unsigned char flushcache[4] = { WIN_FLUSHCACHE, 0, 0, 0 }; 316 unsigned char flushcache[4] = { WIN_FLUSHCACHE, 0, 0, 0 };
317#endif 317#endif
318}; 318} FIX_ALIASING;
319#define G (*(struct globals*)&bb_common_bufsiz1) 319#define G (*(struct globals*)&bb_common_bufsiz1)
320struct BUG_G_too_big { 320struct BUG_G_too_big {
321 char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1]; 321 char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];