aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2010-02-04 15:00:15 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2010-02-04 15:00:15 +0100
commit98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (patch)
tree2d9c07825697cd7c6e96647ff0992dce4d4a0115 /util-linux
parent1821d188ca674b42bf0f384b0c2332ff95701bba (diff)
downloadbusybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.gz
busybox-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.bz2
*: suppress ~60% of "aliased warnings" on gcc-4.4.1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fsck_minix.c1
-rw-r--r--util-linux/mdev.c2
-rw-r--r--util-linux/more.c2
-rw-r--r--util-linux/mount.c2
-rw-r--r--util-linux/swaponoff.c2
5 files changed, 4 insertions, 5 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index feece9920..970f5f79f 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -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 )
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 80549d1b7..69e1e6937 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -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)
diff --git a/util-linux/more.c b/util-linux/more.c
index 076b40057..55694e434 100644
--- a/util-linux/more.c
+++ b/util-linux/more.c
@@ -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)
diff --git a/util-linux/mount.c b/util-linux/mount.c
index 23a345931..0bad59770 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -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)
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c
index 33ad00ac1..f647a32bc 100644
--- a/util-linux/swaponoff.c
+++ b/util-linux/swaponoff.c
@@ -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