On Sun, Nov 29, 2026 at 04:27:16PM -0800, Stephen Hemminger wrote:
> rxa_intr_thread() and vhost_user_client_reconnect() loop forever,
> so the return after the loop can never be reached and clang
> reports it with -Wunreachable-code-aggressive.
> 
> Removing the return is not enough: GCC does not notice that the
> loop never exits and warns that a non void function has no return
> statement. Mark both functions __rte_noreturn instead, which is
> what they are, and drop the dead return.
> 
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---
>  lib/eventdev/rte_event_eth_rx_adapter.c | 4 +---
>  lib/vhost/socket.c                      | 4 +---
>  2 files changed, 2 insertions(+), 6 deletions(-)
> 
Acked-by: Bruce Richardson <[email protected]>

Reply via email to