diff options
author | Jan Engelhardt <jengelh@computergmbh.de> | 2007-09-14 10:31:06 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-09-14 10:31:06 -0400 |
commit | ddcaa0171a677a76078c6e0ad54c2f8033110a6f (patch) | |
tree | 2762ad4ae379ba32cd5e3316e501e05dc2392e4e /btrfsck.c | |
parent | 8454d619a7f6966f65f17c2a727e07ae3667b631 (diff) |
Make btrfs-progs compile with -fstrict-aliasing (included in -O2) again.
This is done by doing a two-step conversion (rather than a one-step).
First, the variable goes from type * to void *, and then to
implicitly to void **.
(Not sure if this is "good practice", but it shuts up the compiler,
so it seems the compiler takes into account that we are actually punning
it this way.)
Diffstat (limited to 'btrfsck.c')
-rw-r--r-- | btrfsck.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -420,7 +420,7 @@ int check_extent_refs(struct btrfs_root *root, int err = 0; while(1) { - ret = radix_tree_gang_lookup(extent_radix, (void **)rec, 0, + ret = radix_tree_gang_lookup(extent_radix, (void *)rec, 0, ARRAY_SIZE(rec)); if (!ret) break; |