mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
WebContent: Silence a clang-tidy warning in the signal handler
This commit is contained in:
committed by
Jelle Raaijmakers
parent
57aab623af
commit
0b2a654703
Notes:
github-actions[bot]
2026-03-15 10:11:06 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/0b2a6547036 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8428 Reviewed-by: https://github.com/gmta ✅
@@ -57,7 +57,7 @@
|
||||
# include <signal.h>
|
||||
static void crash_signal_handler(int signo)
|
||||
{
|
||||
char const* name = "unknown";
|
||||
char const* name;
|
||||
switch (signo) {
|
||||
case SIGSEGV:
|
||||
name = "SIGSEGV";
|
||||
@@ -74,6 +74,9 @@ static void crash_signal_handler(int signo)
|
||||
case SIGILL:
|
||||
name = "SIGILL";
|
||||
break;
|
||||
default:
|
||||
name = "unknown";
|
||||
break;
|
||||
}
|
||||
warnln("\n\033[31;1mCRASH\033[0m: Received signal {} ({})", name, signo);
|
||||
dump_backtrace(2, 100);
|
||||
|
||||
Reference in New Issue
Block a user