Hi Ilya,

On Sat, Apr 25, 2026 at 01:04:48PM +0200, Ilia Shipitsin wrote:
> fixes #2124
> 
> src/cpuset.c:21:11: error: Found an exit path from function with non-void 
> return type that has missing return statement [missingReturn]
> src/cpuset.c:36:11: error: Found an exit path from function with non-void 
> return type that has missing return statement [missingReturn]
> src/cpuset.c:100:1: error: Found an exit path from function with non-void 
> return type that has missing return statement [missingReturn]
> src/cpuset.c:124:1: error: Found an exit path from function with non-void 
> return type that has missing return statement [missingReturn]
> src/cpuset.c:152:1: error: Found an exit path from function with non-void 
> return type that has missing return statement [missingReturn]
> src/cpuset.c:163:1: error: Found an exit path from function with non-void 
> return type that has missing return statement [missingReturn]
> ---
>  src/cpuset.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/src/cpuset.c b/src/cpuset.c
> index f85c31b9c..d21c849c3 100644
> --- a/src/cpuset.c
> +++ b/src/cpuset.c
> @@ -28,6 +28,8 @@ int ha_cpuset_set(struct hap_cpuset *set, int cpu)
>       set->cpuset |= (0x1 << cpu);
>       return 0;
>  #endif
> +
> +     return 1;
>  }
(...)

I've now merged it! However I placed #else before the return so
that we don't trigger warnings on future compilers which will find
it funny to report it when two returns are placed next to each
other. 

Thank you!
Willy


Reply via email to