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 /coreutils | |
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 'coreutils')
-rw-r--r-- | coreutils/dd.c | 2 | ||||
-rw-r--r-- | coreutils/du.c | 2 | ||||
-rw-r--r-- | coreutils/expr.c | 2 | ||||
-rw-r--r-- | coreutils/ls.c | 2 | ||||
-rw-r--r-- | coreutils/stty.c | 2 | ||||
-rw-r--r-- | coreutils/tail.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c index 8173d40..7c1a0c0 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c @@ -38,7 +38,7 @@ struct globals { unsigned long long total_bytes; unsigned long long begin_time_us; #endif -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define INIT_G() do { \ /* we have to zero it out because of NOEXEC */ \ diff --git a/coreutils/du.c b/coreutils/du.c index 730d6d1..5894ed4 100644 --- a/coreutils/du.c +++ b/coreutils/du.c @@ -50,7 +50,7 @@ struct globals { int slink_depth; int du_depth; dev_t dir_dev; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) diff --git a/coreutils/expr.c b/coreutils/expr.c index f5701a4..f40edad 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c @@ -63,7 +63,7 @@ typedef struct valinfo VALUE; /* The arguments given to the program, minus the program name. */ struct globals { char **args; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) /* forward declarations */ diff --git a/coreutils/ls.c b/coreutils/ls.c index d004ce8..1197f7d 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -255,7 +255,7 @@ struct globals { /* Do time() just once. Saves one syscall per file for "ls -l" */ time_t current_time_t; #endif -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #if ENABLE_FEATURE_LS_COLOR # define show_color (G.show_color ) diff --git a/coreutils/stty.c b/coreutils/stty.c index 4952d53..c40d718 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c @@ -625,7 +625,7 @@ struct globals { /* Current position, to know when to wrap */ unsigned current_col; char buf[10]; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) #define INIT_G() do { \ G.device_name = bb_msg_standard_input; \ diff --git a/coreutils/tail.c b/coreutils/tail.c index 0be1663..83768d4 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -35,7 +35,7 @@ static const struct suffix_mult tail_suffixes[] = { struct globals { bool status; -}; +} FIX_ALIASING; #define G (*(struct globals*)&bb_common_bufsiz1) static void tail_xprint_header(const char *fmt, const char *filename) |