*: suppress ~60% of "aliased warnings" on gcc-4.4.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -157,7 +157,6 @@ struct globals {
|
||||
/* File-name data */
|
||||
char current_name[MAX_DEPTH * MINIX_NAME_MAX];
|
||||
};
|
||||
|
||||
#define G (*ptr_to_globals)
|
||||
#if ENABLE_FEATURE_MINIX2
|
||||
#define version2 (G.version2 )
|
||||
|
@@ -64,7 +64,7 @@
|
||||
struct globals {
|
||||
int root_major, root_minor;
|
||||
char *subsystem;
|
||||
};
|
||||
} FIX_ALIASING;
|
||||
#define G (*(struct globals*)&bb_common_bufsiz1)
|
||||
#define root_major (G.root_major)
|
||||
#define root_minor (G.root_minor)
|
||||
|
@@ -22,7 +22,7 @@ struct globals {
|
||||
int cin_fileno;
|
||||
struct termios initial_settings;
|
||||
struct termios new_settings;
|
||||
};
|
||||
} FIX_ALIASING;
|
||||
#define G (*(struct globals*)bb_common_bufsiz1)
|
||||
#define INIT_G() ((void)0)
|
||||
#define initial_settings (G.initial_settings)
|
||||
|
@@ -268,7 +268,7 @@ struct globals {
|
||||
llist_t *fslist;
|
||||
char getmntent_buf[1];
|
||||
|
||||
};
|
||||
} FIX_ALIASING;
|
||||
enum { GETMNTENT_BUFSIZE = COMMON_BUFSIZE - offsetof(struct globals, getmntent_buf) };
|
||||
#define G (*(struct globals*)&bb_common_bufsiz1)
|
||||
#define nfs_mount_version (G.nfs_mount_version)
|
||||
|
@@ -20,7 +20,7 @@
|
||||
#if ENABLE_FEATURE_SWAPON_PRI
|
||||
struct globals {
|
||||
int flags;
|
||||
};
|
||||
} FIX_ALIASING;
|
||||
#define G (*(struct globals*)&bb_common_bufsiz1)
|
||||
#define g_flags (G.flags)
|
||||
#else
|
||||
|
Reference in New Issue
Block a user