]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Fix gcc-4.4 compiler warning.
authorNeilBrown <neilb@suse.de>
Wed, 29 Apr 2009 01:44:02 +0000 (11:44 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 29 Apr 2009 01:44:02 +0000 (11:44 +1000)
commitcaa0f6c623214231380c5ef0de91b53cc43d1e0b
treef2a986154d8c5e4e72aca7754dc67d788105e3a6
parent667e66d329168f205f0f67674910287fed982d87
Fix gcc-4.4 compiler warning.

Apparently the dereferencing of a type-punned pointer breaks strict
aliasing rules.   And we wouldn't want to do that.
So just make a different array of the appropriate type and use memcpy.

Resolves-Debian-bug: 505375
Signed-off-by: NeilBrown <neilb@suse.de>
bitmap.c
super1.c