From: Kevin Day Date: Fri, 14 Jan 2022 23:59:00 +0000 (-0600) Subject: Bugfix: Mock function is missing parameter name? X-Git-Tag: 0.5.8~117 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=3d19fe4aa06c120eb10ff699a78a13ca3a9e33a6;p=fll 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. --- 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);