]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsprogs: fix type-punning warnings
authorEric Sandeen <sandeen@redhat.com>
Tue, 14 Dec 2010 19:00:01 +0000 (13:00 -0600)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 16 Dec 2010 22:15:30 +0000 (17:15 -0500)
commitc816ecb204a32e67788738e050ff2b14a721672b
tree61ebd68d1b3e61bc3319a1f8676eec12d307b890
parentd085f61f25e9e208d99ca6e2c3547ba942033961
e2fsprogs: fix type-punning warnings

Flags used during RHEL/Fedora builds lead to a couple type-punning
warnings:

  recovery.c: In function 'do_one_pass':
  recovery.c:539: warning: dereferencing type-punned pointer will break strict-aliasing rules
  ./csum.c: In function 'print_csum':
  ./csum.c:170: warning: dereferencing type-punned pointer will break strict-aliasing rules

The two changes below fix this up.

Note that the csum test binary output changes slightly, but this does
not break any tests.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/recovery.c
lib/ext2fs/Makefile.in
lib/ext2fs/csum.c