base: Prevent undefined behavior in not interleaved `AddrRange`s.
[gem5.git] / src / base / logging.hh
index f56420bfa6621f40848605e3a385c1889523e1c6..29a9563d2b07656076b3d3b99d0e9ce1fd5bbc7a 100644 (file)
@@ -121,7 +121,7 @@ class Logger
      * functions, and gcc will get mad if a function calls panic and then
      * doesn't return.
      */
-    void exit_helper() M5_ATTR_NORETURN { exit(); ::abort(); }
+    [[noreturn]] void exit_helper() { exit(); ::abort(); }
 
   protected:
     bool enabled;