>From 8049ef006438c3edef3b3f6e8318e575c2d498f7 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 14 Apr 2017 18:43:42 +0200 Subject: [PATCH 2/2] 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 @@ /// which is not useful here. template<> -[[noreturn]] std::string value_cast(database_entity const&) { alarum() << "Invalid function call." << LMI_FLUSH; @@ -81,7 +80,6 @@ /// which is not useful here. template<> -[[noreturn]] database_entity value_cast(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 @@ /// which is not useful here. template<> -[[noreturn]] std::string value_cast(rounding_parameters const&) { alarum() << "Invalid function call." << LMI_FLUSH; @@ -80,7 +79,6 @@ /// which is not useful here. template<> -[[noreturn]] rounding_parameters value_cast(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 @@ /// which is not useful here. template<> -[[noreturn]] std::string value_cast(stratified_entity const&) { alarum() << "Invalid function call." << LMI_FLUSH; @@ -77,7 +76,6 @@ /// which is not useful here. template<> -[[noreturn]] stratified_entity value_cast(std::string const&) { alarum() << "Invalid function call." << LMI_FLUSH; -- 2.8.0.rc1