]> git.kaiwu.me - haproxy.git/commit
CLEANUP: src/cpuset.c: fix missing return in functions returning int
authorIlia Shipitsin <chipitsine@gmail.com>
Sat, 25 Apr 2026 11:04:48 +0000 (13:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 12 May 2026 06:55:19 +0000 (08:55 +0200)
commitd9a7ff9b6c2b1dbbcb3ef1532ec3d38259638537
tree9ce93fff5c728612676d52e8715160987cdbe60a
parente0144843a4fbe5f043a9227fce7cbed2b86cec20
CLEANUP: src/cpuset.c: fix missing return in functions returning int

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.
src/cpuset.c