diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 7082601f59..0efb6760cb 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -551,6 +551,7 @@ fail: if (ret < 0) { int dummy; dummy = update_refcount(bs, offset, cluster_offset - offset, -addend); + (void)dummy; } return ret;