*: suppress ~60% of "aliased warnings" on gcc-4.4.1

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2010-02-04 15:00:15 +01:00
parent 1821d188ca
commit 98a4c7cf3d
49 changed files with 65 additions and 58 deletions

View File

@@ -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 */ \

View File

@@ -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)

View File

@@ -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 */

View File

@@ -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 )

View File

@@ -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; \

View File

@@ -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)