*: 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

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

View File

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

View File

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

View File

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

View File

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