Selaa lähdekoodia

LibTest: Decorate cleanup_and_exit() with [[noreturn]]

Andreas Kling 3 vuotta sitten
vanhempi
commit
405b8e7915
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Userland/Libraries/LibTest/TestRunner.h

+ 1 - 1
Userland/Libraries/LibTest/TestRunner.h

@@ -73,7 +73,7 @@ inline void cleanup()
         warn("\033]9;-1;\033\\");
         warn("\033]9;-1;\033\\");
 }
 }
 
 
-inline void cleanup_and_exit()
+[[noreturn]] inline void cleanup_and_exit()
 {
 {
     cleanup();
     cleanup();
     exit(1);
     exit(1);