summaryrefslogtreecommitdiffstats
path: root/module/zfs/dsl_dataset.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-03-11 22:07:25 -0700
committerBrian Behlendorf <[email protected]>2009-03-11 22:07:25 -0700
commitecd2dbcb441f747567cb155f62606537c491a8be (patch)
tree271d2c081285ce5e213940eb4387ec9d50f278a0 /module/zfs/dsl_dataset.c
parent32d4d74b0434047fb185c0d53c4b7acc9ae7e36b (diff)
Resolve upstream unused variables so we can remove the -Wno-unused
compile option. In most case the variables are only unused when debugging is disabled (ASSERT) however they do waste stack if that case if the compiler doesn't optimize it out (it should). But more importantly disabling this warning prevent us from noticing legit unused variables accidentally left in other place of the code.
Diffstat (limited to 'module/zfs/dsl_dataset.c')
-rw-r--r--module/zfs/dsl_dataset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/dsl_dataset.c b/module/zfs/dsl_dataset.c
index 3e87106fa..e56835143 100644
--- a/module/zfs/dsl_dataset.c
+++ b/module/zfs/dsl_dataset.c
@@ -1699,7 +1699,7 @@ dsl_dataset_destroy_sync(void *arg1, void *tag, cred_t *cr, dmu_tx_t *tx)
if (ds->ds_phys->ds_next_clones_obj != 0) {
uint64_t count;
- ASSERT(0 == zap_count(mos,
+ VERIFY(0 == zap_count(mos,
ds->ds_phys->ds_next_clones_obj, &count) && count == 0);
VERIFY(0 == dmu_object_free(mos,
ds->ds_phys->ds_next_clones_obj, tx));