diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crond.c | 2 | ||||
-rw-r--r-- | miscutils/dc.c | 2 | ||||
-rw-r--r-- | miscutils/hdparm.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 7135e44..ebd4812 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -94,7 +94,7 @@ struct globals { char *env_var_user; char *env_var_home; #endif -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define LogLevel (G.LogLevel ) #define LogFile (G.LogFile ) diff --git a/miscutils/dc.c b/miscutils/dc.c index 7348ed3..cb4b1e9 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -13,7 +13,7 @@ struct globals { unsigned pointer; unsigned base; double stack[1]; -}; +} FIX_ALIASING; enum { STACK_SIZE = (COMMON_BUFSIZE - offsetof(struct globals, stack)) / sizeof(double) }; #define G (*(struct globals*)&bb_common_bufsiz1) #define pointer (G.pointer ) diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 399b77a..9738620 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c @@ -315,7 +315,7 @@ struct globals { #ifdef DO_FLUSHCACHE unsigned char flushcache[4] = { WIN_FLUSHCACHE, 0, 0, 0 }; #endif -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) struct BUG_G_too_big { char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1]; |