Skip to content

Commit f1ddb6f

Browse files
committed
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).
1 parent 04160e0 commit f1ddb6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sys/security/mac_do/mac_do.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ grant_primary_group_from_flags(const flags_t flags)
16281628
* - EJUSTRETURN: Flags are agnostic.
16291629
* - EPERM: Access denied.
16301630
*/
1631-
static int
1631+
static int __unused
16321632
grant_supplementary_group_from_flags(const flags_t flags)
16331633
{
16341634
if ((flags & MDF_SUPP_MASK) != 0)

0 commit comments

Comments
 (0)