*: suppress ~60% of "aliased warnings" on gcc-4.4.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -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 */ \
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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; \
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user