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;
}
int ha_cpuset_clr(struct hap_cpuset *set, int cpu)
@@ -43,6 +45,8 @@ int ha_cpuset_clr(struct hap_cpuset *set, int cpu)
set->cpuset &= ~(0x1 << cpu);
return 0;
#endif
+
+ return 1;
}
void ha_cpuset_and(struct hap_cpuset *dst, struct hap_cpuset *src)
@@ -97,6 +101,8 @@ int ha_cpuset_count(const struct hap_cpuset *set)
#elif defined(CPUSET_USE_ULONG)
return my_popcountl(set->cpuset);
#endif
+
+ return 0;
}
int ha_cpuset_ffs(const struct hap_cpuset *set)
@@ -121,6 +127,8 @@ int ha_cpuset_ffs(const struct hap_cpuset *set)
return my_ffsl(set->cpuset);
#endif
+
+ return 0;
}
void ha_cpuset_assign(struct hap_cpuset *dst, struct hap_cpuset *src)
@@ -149,6 +157,8 @@ int ha_cpuset_isequal(const struct hap_cpuset *dst, const
struct hap_cpuset *src
#elif defined(CPUSET_USE_ULONG)
return dst->cpuset == src->cpuset;
#endif
+
+ return 0;
}
int ha_cpuset_size()
@@ -160,6 +170,8 @@ int ha_cpuset_size()
return LONGBITS;
#endif
+
+ return 0;
}
/* Parse cpu sets. Each CPU set is either a unique number between 0 and
--
2.46.0.windows.1