diff options
| author | Ankit Khushwaha <ankitkhushwaha.linux@gmail.com> | 2026-01-01 22:58:40 +0530 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-01-05 16:28:07 -0800 |
| commit | 2fa98059fd5a0936d0951bd14f8990ae0aa5272a (patch) | |
| tree | bec418ce1b83bc36bda648fda0ee6059c30fe402 /include | |
| parent | f5e9ba959960fb9771c6e4fb1f075b8b74f4e877 (diff) | |
selftests: mptcp: Mark xerror and die_perror __noreturn
Compiler reports potential uses of uninitialized variables in
mptcp_connect.c when xerror() is called from failure paths.
mptcp_connect.c:1262:11: warning: variable 'raw_addr' is used
uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
xerror() terminates execution by calling exit(), but it is not visible
to the compiler & assumes control flow may continue past the call.
Annotate xerror() with __noreturn so the compiler can correctly reason
about control flow and avoid false-positive uninitialized variable
warnings.
Signed-off-by: Ankit Khushwaha <ankitkhushwaha.linux@gmail.com>
Link: https://patch.msgid.link/20260101172840.90186-1-ankitkhushwaha.linux@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
