summaryrefslogtreecommitdiff
path: root/btrfsck.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@computergmbh.de>2007-09-14 10:31:06 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-09-14 10:31:06 -0400
commitddcaa0171a677a76078c6e0ad54c2f8033110a6f (patch)
tree2762ad4ae379ba32cd5e3316e501e05dc2392e4e /btrfsck.c
parent8454d619a7f6966f65f17c2a727e07ae3667b631 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfsck.c b/btrfsck.c
index 628dfc3c..d8bfa537 100644
--- a/btrfsck.c
+++ b/btrfsck.c
@@ -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;