git: f9b5d5bf1186 - stable/14 - MAC/do: Fix a compilation warning about an unused function
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Apr 2025 19:32:35 UTC
The branch stable/14 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=f9b5d5bf1186d4b01e92229d271f2cb0d8764b25
commit f9b5d5bf1186d4b01e92229d271f2cb0d8764b25
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-12-17 14:17:16 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-04-03 19:31:06 +0000
MAC/do: Fix a compilation warning about an unused function
grant_supplementary_group_from_flags() had been used in previous
versions of the recent changes, but recently has not been needed
anymore. It has been kept around just in case deliberately, by analogy
with grant_primary_group_from_flags() (this one still being used).
(cherry picked from commit f1ddb6fb8c4d051a205dae3a848776c9d56f86ff)
---
sys/security/mac_do/mac_do.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/security/mac_do/mac_do.c b/sys/security/mac_do/mac_do.c
index c5f986920db1..8175f8ccdab4 100644
--- a/sys/security/mac_do/mac_do.c
+++ b/sys/security/mac_do/mac_do.c
@@ -1628,7 +1628,7 @@ grant_primary_group_from_flags(const flags_t flags)
* - EJUSTRETURN: Flags are agnostic.
* - EPERM: Access denied.
*/
-static int
+static int __unused
grant_supplementary_group_from_flags(const flags_t flags)
{
if ((flags & MDF_SUPP_MASK) != 0)