summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phosphor-logging/elog.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/phosphor-logging/elog.hpp b/phosphor-logging/elog.hpp
index 5aace07..045e99d 100644
--- a/phosphor-logging/elog.hpp
+++ b/phosphor-logging/elog.hpp
@@ -147,8 +147,7 @@ void commit(Entry::Level level)
* @param[in] i_args - Metadata fields to be added to the journal entry
*/
template <typename T, typename... Args>
-void elog(Args... i_args)
-{
+[[noreturn]] void elog(Args... i_args) {
// Validate if the exception is derived from sdbusplus::exception.
static_assert(std::is_base_of<sdbusplus::exception::exception, T>::value,
"T must be a descendant of sdbusplus::exception::exception");
OpenPOWER on IntegriCloud