From e023c1af7954671ee8d32c07f530b70a7db1d619 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sun, 30 Sep 2018 13:56:25 +0200 Subject: [PATCH] Declare throwIoFailure() as [[noreturn]] --- io/catchiofailure.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/catchiofailure.h b/io/catchiofailure.h index 8e89b5f..be3b77b 100644 --- a/io/catchiofailure.h +++ b/io/catchiofailure.h @@ -8,7 +8,7 @@ namespace IoUtilities { CPP_UTILITIES_EXPORT const char *catchIoFailure(); -CPP_UTILITIES_EXPORT void throwIoFailure(const char *what); +[[noreturn]] CPP_UTILITIES_EXPORT void throwIoFailure(const char *what); } // namespace IoUtilities #endif // IOUTILITIES_CATCHIOFAILURE_H