lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 52a4100 1/2: Remove [[noreturn]] attribute fr


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 52a4100 1/2: Remove [[noreturn]] attribute from function definitions
Date: Fri, 5 Jun 2020 16:14:47 -0400 (EDT)

branch: master
commit 52a410068ae7b659e7a754c76697b8cba1d1bf21
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Remove [[noreturn]] attribute from function definitions
    
    The corresponding declarations cannot use [[noreturn]] because the
    CLI and GUI definitions can return normally.
---
 alert_cgi.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/alert_cgi.cpp b/alert_cgi.cpp
index 639942a..8461029 100644
--- a/alert_cgi.cpp
+++ b/alert_cgi.cpp
@@ -46,13 +46,11 @@ void status_alert(std::string const&)
 // a higher-level routine catch and display it. It might be desirable
 // to write a log file, too.
 
-[[noreturn]]
 void warning_alert(std::string const& s)
 {
     throw std::runtime_error(s);
 }
 
-[[noreturn]]
 void hobsons_choice_alert(std::string const& s)
 {
     throw std::runtime_error(s);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]