diff options
author | Denys Vlasenko | 2010-02-04 18:41:18 +0100 |
---|---|---|
committer | Denys Vlasenko | 2010-02-04 18:41:18 +0100 |
commit | 12ca080a1ca8dfd0aeac54485451b906a7e61b16 (patch) | |
tree | abb273fb03a73bc9c20d05f9128bdfd9bfe55e55 /util-linux/volume_id | |
parent | 98a4c7cf3d799ab953cb77e8b34597c73e3e7335 (diff) | |
download | busybox-12ca080a1ca8dfd0aeac54485451b906a7e61b16.zip busybox-12ca080a1ca8dfd0aeac54485451b906a7e61b16.tar.gz |
*: eliminate more aliasing warnings
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/volume_id')
-rw-r--r-- | util-linux/volume_id/linux_raid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/volume_id/linux_raid.c b/util-linux/volume_id/linux_raid.c index d1bf0c3..e1c8636 100644 --- a/util-linux/volume_id/linux_raid.c +++ b/util-linux/volume_id/linux_raid.c @@ -44,6 +44,7 @@ struct mdp_super_block { int FAST_FUNC volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, uint64_t size) { + typedef uint32_t aliased_uint32_t FIX_ALIASING; #define off ((uint64_t)0) uint64_t sboff; uint8_t uuid[16]; @@ -63,7 +64,7 @@ int FAST_FUNC volume_id_probe_linux_raid(struct volume_id *id /*,uint64_t off*/, if (mdp->md_magic != cpu_to_le32(MD_MAGIC)) return -1; - *(uint32_t*)uuid = mdp->set_uuid0; + *(aliased_uint32_t*)uuid = mdp->set_uuid0; memcpy(&uuid[4], &mdp->set_uuid1, 12); volume_id_set_uuid(id, uuid, UUID_DCE); |