aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-04 15:00:15 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-04 15:00:15 +0100
commit98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (patch)
tree2d9c07825697cd7c6e96647ff0992dce4d4a0115 /util-linux
parent1821d188ca674b42bf0f384b0c2332ff95701bba (diff)
downloadbusybox-w32-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.gz
busybox-w32-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.tar.bz2
busybox-w32-98a4c7cf3d799ab953cb77e8b34597c73e3e7335.zip
*: 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 {
157 /* File-name data */ 157 /* File-name data */
158 char current_name[MAX_DEPTH * MINIX_NAME_MAX]; 158 char current_name[MAX_DEPTH * MINIX_NAME_MAX];
159}; 159};
160
161#define G (*ptr_to_globals) 160#define G (*ptr_to_globals)
162#if ENABLE_FEATURE_MINIX2 161#if ENABLE_FEATURE_MINIX2
163#define version2 (G.version2 ) 162#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 @@
64struct globals { 64struct globals {
65 int root_major, root_minor; 65 int root_major, root_minor;
66 char *subsystem; 66 char *subsystem;
67}; 67} FIX_ALIASING;
68#define G (*(struct globals*)&bb_common_bufsiz1) 68#define G (*(struct globals*)&bb_common_bufsiz1)
69#define root_major (G.root_major) 69#define root_major (G.root_major)
70#define root_minor (G.root_minor) 70#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 {
22 int cin_fileno; 22 int cin_fileno;
23 struct termios initial_settings; 23 struct termios initial_settings;
24 struct termios new_settings; 24 struct termios new_settings;
25}; 25} FIX_ALIASING;
26#define G (*(struct globals*)bb_common_bufsiz1) 26#define G (*(struct globals*)bb_common_bufsiz1)
27#define INIT_G() ((void)0) 27#define INIT_G() ((void)0)
28#define initial_settings (G.initial_settings) 28#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 {
268 llist_t *fslist; 268 llist_t *fslist;
269 char getmntent_buf[1]; 269 char getmntent_buf[1];
270 270
271}; 271} FIX_ALIASING;
272enum { GETMNTENT_BUFSIZE = COMMON_BUFSIZE - offsetof(struct globals, getmntent_buf) }; 272enum { GETMNTENT_BUFSIZE = COMMON_BUFSIZE - offsetof(struct globals, getmntent_buf) };
273#define G (*(struct globals*)&bb_common_bufsiz1) 273#define G (*(struct globals*)&bb_common_bufsiz1)
274#define nfs_mount_version (G.nfs_mount_version) 274#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 @@
20#if ENABLE_FEATURE_SWAPON_PRI 20#if ENABLE_FEATURE_SWAPON_PRI
21struct globals { 21struct globals {
22 int flags; 22 int flags;
23}; 23} FIX_ALIASING;
24#define G (*(struct globals*)&bb_common_bufsiz1) 24#define G (*(struct globals*)&bb_common_bufsiz1)
25#define g_flags (G.flags) 25#define g_flags (G.flags)
26#else 26#else