lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master d4047f2 2/2: Remove "noreturn" attribute from


From: Greg Chicares
Subject: [lmi-commits] [lmi] master d4047f2 2/2: Remove "noreturn" attribute from template specializations
Date: Wed, 19 Apr 2017 18:31:17 -0400 (EDT)

branch: master
commit d4047f24372334b5ad799de148a283e562914c2d
Author: Vadim Zeitlin <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Remove "noreturn" attribute from template specializations
    
    This avoids clang "function declared '[[noreturn]]' after its first
    declaration" errors.
---
 dbdict.cpp             | 2 --
 rounding_rules.cpp     | 2 --
 stratified_charges.cpp | 2 --
 3 files changed, 6 deletions(-)

diff --git a/dbdict.cpp b/dbdict.cpp
index 5c81d7f..d8875f6 100644
--- a/dbdict.cpp
+++ b/dbdict.cpp
@@ -67,7 +67,6 @@ template<> struct xml_io<database_entity>
 /// which is not useful here.
 
 template<>
-[[noreturn]]
 std::string value_cast<std::string>(database_entity const&)
 {
     alarum() << "Invalid function call." << LMI_FLUSH;
@@ -81,7 +80,6 @@ std::string value_cast<std::string>(database_entity const&)
 /// which is not useful here.
 
 template<>
-[[noreturn]]
 database_entity value_cast<database_entity>(std::string const&)
 {
     alarum() << "Invalid function call." << LMI_FLUSH;
diff --git a/rounding_rules.cpp b/rounding_rules.cpp
index f541207..fb4bd48 100644
--- a/rounding_rules.cpp
+++ b/rounding_rules.cpp
@@ -66,7 +66,6 @@ template<> struct xml_io<rounding_parameters>
 /// which is not useful here.
 
 template<>
-[[noreturn]]
 std::string value_cast<std::string>(rounding_parameters const&)
 {
     alarum() << "Invalid function call." << LMI_FLUSH;
@@ -80,7 +79,6 @@ std::string value_cast<std::string>(rounding_parameters 
const&)
 /// which is not useful here.
 
 template<>
-[[noreturn]]
 rounding_parameters value_cast<rounding_parameters>(std::string const&)
 {
     alarum() << "Invalid function call." << LMI_FLUSH;
diff --git a/stratified_charges.cpp b/stratified_charges.cpp
index 411f4b0..1fc1219 100644
--- a/stratified_charges.cpp
+++ b/stratified_charges.cpp
@@ -63,7 +63,6 @@ namespace xml_serialize
 /// which is not useful here.
 
 template<>
-[[noreturn]]
 std::string value_cast<std::string>(stratified_entity const&)
 {
     alarum() << "Invalid function call." << LMI_FLUSH;
@@ -77,7 +76,6 @@ std::string value_cast<std::string>(stratified_entity const&)
 /// which is not useful here.
 
 template<>
-[[noreturn]]
 stratified_entity value_cast<stratified_entity>(std::string const&)
 {
     alarum() << "Invalid function call." << LMI_FLUSH;



reply via email to

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