Cppcheck found the issue described in github #2124, which can cause these
errors if no CPUSET implementation is supported (and CPUSET_USE_ULONG is
not enabled):
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]
This can be backported.
#elif defined(CPUSET_USE_ULONG)
set->cpuset |= (0x1 << cpu);
return 0;
+#else
+ return 1;
#endif
}
#elif defined(CPUSET_USE_ULONG)
set->cpuset &= ~(0x1 << cpu);
return 0;
+#else
+ return 1;
#endif
}
#elif defined(CPUSET_USE_ULONG)
return my_popcountl(set->cpuset);
+#else
+ return 0;
#endif
}
return 0;
return my_ffsl(set->cpuset);
+#else
+ return 0;
#endif
}
#elif defined(CPUSET_USE_ULONG)
return dst->cpuset == src->cpuset;
+#else
+ return 0;
#endif
}
#elif defined(CPUSET_USE_ULONG)
return LONGBITS;
-
+#else
+ return 0;
#endif
}