Everywhere: Fix a few unreachable-return / unreachable-break warnings

I was playing with clang's -Wunreachable-code-aggressive a bit.
This fixes a handful uncontroversial things it flags.

No behavior change.
This commit is contained in:
Nico Weber 2025-09-12 07:57:50 -04:00 committed by Sam Atkins
commit 9272df7a86
Notes: github-actions[bot] 2025-09-12 13:34:20 +00:00
3 changed files with 6 additions and 9 deletions

View file

@ -292,9 +292,10 @@ ErrorOr<bool> Process::is_being_debugged()
# elif defined(AK_OS_FREEBSD)
return ((info.ki_flag & P_TRACED) != 0);
# endif
#endif
#else
// FIXME: Implement this for more platforms.
return Error::from_string_literal("Platform does not support checking for debugger");
#endif
}
// Forces the process to sleep until a debugger is attached, then breaks.