Blame SOURCES/quota-4.06-quotaops-fix-compilation-warning.patch

97c04e
From 8a3321627bb9215ed40f8f7036a1e86bcaf10ad1 Mon Sep 17 00:00:00 2001
97c04e
From: "Dmitry V. Levin" <ldv@altlinux.org>
97c04e
Date: Sun, 22 Nov 2020 08:00:00 +0000
97c04e
Subject: [PATCH] quotaops: fix compilation warning
97c04e
MIME-Version: 1.0
97c04e
Content-Type: text/plain; charset=UTF-8
97c04e
Content-Transfer-Encoding: 8bit
97c04e
97c04e
When quota is configured using --enable-werror --disable-bsd_behaviour,
97c04e
the compilation fails with the following diagnostics:
97c04e
97c04e
quotaops.c: In function 'getprivs':
97c04e
quotaops.c:143:1: error: label 'out_err' defined but not used [-Werror=unused-label]
97c04e
97c04e
Fixes: 7942290a ("quotaops: Do not leak dquot structures on failure")
97c04e
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
97c04e
Signed-off-by: Jan Kara <jack@suse.cz>
97c04e
Signed-off-by: Petr Písař <ppisar@redhat.com>
97c04e
---
97c04e
 quotaops.c | 2 ++
97c04e
 1 file changed, 2 insertions(+)
97c04e
97c04e
diff --git a/quotaops.c b/quotaops.c
97c04e
index ff4d16e..96086f4 100644
97c04e
--- a/quotaops.c
97c04e
+++ b/quotaops.c
97c04e
@@ -140,7 +140,9 @@ struct dquot *getprivs(qid_t id, struct quota_handle **handles, int ignore_noquo
97c04e
 			id2name(id, handles[i]->qh_type, name);
97c04e
 			errstr(_("error while getting quota from %s for %s (id %u): %s\n"),
97c04e
 				handles[i]->qh_quotadev, name, id, estr);
97c04e
+#if defined(BSD_BEHAVIOUR)
97c04e
 out_err:
97c04e
+#endif
97c04e
 			freeprivs(qhead);
97c04e
 			return NULL;
97c04e
 		}
97c04e
-- 
97c04e
2.26.2
97c04e