elog: Add noreturn attribute

We need to signal to the compiler that elog() always throws. This allows
the compiler to deduce that we have unreachable code after the elog()
statement, instead of a assuming that it might be reachable.

Change-Id: If6c41773d3a0dde94d44481ad6ecd719365c515a
Signed-off-by: William A. Kennington III <wak@google.com>
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 @@
  *  @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");