git: f1ddb6fb8c4d - main - MAC/do: Fix a compilation warning about an unused function
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Dec 2024 14:48:52 UTC
The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=f1ddb6fb8c4d051a205dae3a848776c9d56f86ff commit f1ddb6fb8c4d051a205dae3a848776c9d56f86ff Author: Olivier Certner <olce@FreeBSD.org> AuthorDate: 2024-12-17 14:17:16 +0000 Commit: Olivier Certner <olce@FreeBSD.org> CommitDate: 2024-12-17 14:47:42 +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). --- 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)