From 3d19fe4aa06c120eb10ff699a78a13ca3a9e33a6 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 14 Jan 2022 17:59:00 -0600 Subject: [PATCH] Bugfix: Mock function is missing parameter name? How did this even compile? I'm guessing GCC 11 seems to ignore this when the parameter is not used whereas GCC 8 does not. This is still improper even if newer a GCC can handle the lack of a name. --- level_0/f_capability/tests/c/mock-capability.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/level_0/f_capability/tests/c/mock-capability.c b/level_0/f_capability/tests/c/mock-capability.c index 090d1a9..92399ad 100644 --- a/level_0/f_capability/tests/c/mock-capability.c +++ b/level_0/f_capability/tests/c/mock-capability.c @@ -210,7 +210,7 @@ cap_mode_t __wrap_cap_get_mode(void) { return (cap_mode_t) 1; } -uid_t __wrap_cap_get_nsowner(cap_t) { +uid_t __wrap_cap_get_nsowner(cap_t capability) { bool failure = mock_type(bool); -- 1.8.3.1