summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2020-11-22 08:00:00 +0000
committerJan Kara <jack@suse.cz>2020-11-23 16:21:15 +0100
commit8a3321627bb9215ed40f8f7036a1e86bcaf10ad1 (patch)
tree92e2a3f17dbe2c38d4ad65bd114d4add5160ad03
parent55f1a0604bd4df6d591674b5bef123be1af84e55 (diff)
downloadlinuxquota-8a3321627bb9215ed40f8f7036a1e86bcaf10ad1.tar.gz
quotaops: fix compilation warning
When quota is configured using --enable-werror --disable-bsd_behaviour, the compilation fails with the following diagnostics: quotaops.c: In function 'getprivs': quotaops.c:143:1: error: label 'out_err' defined but not used [-Werror=unused-label] Fixes: 7942290a ("quotaops: Do not leak dquot structures on failure") Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r--quotaops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/quotaops.c b/quotaops.c
index ff4d16e..96086f4 100644
--- a/quotaops.c
+++ b/quotaops.c
@@ -140,7 +140,9 @@ struct dquot *getprivs(qid_t id, struct quota_handle **handles, int ignore_noquo
id2name(id, handles[i]->qh_type, name);
errstr(_("error while getting quota from %s for %s (id %u): %s\n"),
handles[i]->qh_quotadev, name, id, estr);
+#if defined(BSD_BEHAVIOUR)
out_err:
+#endif
freeprivs(qhead);
return NULL;
}