diff --git a/src/cxxutil.hpp b/src/cxxutil.hpp index 545d38dfd..591d7aa4d 100644 --- a/src/cxxutil.hpp +++ b/src/cxxutil.hpp @@ -61,7 +61,7 @@ struct SourceLocation { class IErrorAssertHandler { public: - static void handle(const SourceLocation& source_location, const char* expression) { + [[ noreturn ]] static void handle(const SourceLocation& source_location, const char* expression) { I_Error("Assertion failed at %s:%u: %s != true", source_location.file_name, source_location.line_number,