From 83c809df5fef0a02b973247b35f1167f723cd348 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Tue, 26 May 2020 13:07:40 +0300 Subject: [PATCH] LibC: Remove endless loop after abort() call We (rightfully) mark abort() noreturn, so the loop just gets compiled out. --- Libraries/LibC/assert.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibC/assert.cpp b/Libraries/LibC/assert.cpp index 244074d5c3..ae4ddfe7df 100644 --- a/Libraries/LibC/assert.cpp +++ b/Libraries/LibC/assert.cpp @@ -37,8 +37,6 @@ void __assertion_failed(const char* msg) dbgprintf("USERSPACE(%d) ASSERTION FAILED: %s\n", getpid(), msg); fprintf(stderr, "ASSERTION FAILED: %s\n", msg); abort(); - for (;;) - ; } #endif }