Parcourir la source

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

Andreas Kling il y a 3 ans
Parent
commit
405b8e7915
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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\\");
 }
 
-inline void cleanup_and_exit()
+[[noreturn]] inline void cleanup_and_exit()
 {
     cleanup();
     exit(1);