File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ void report_exception_to_stderr(const invariant_failedt &);
149
149
// / \param params : (variadic) parameters to forward to ET's constructor
150
150
// / its backtrace member will be set before it is used.
151
151
template <class ET , typename ...Params>
152
+ #ifdef __GNUC__
153
+ __attribute__ ((noreturn))
154
+ #endif
152
155
typename std::enable_if<std::is_base_of<invariant_failedt, ET>::value>::type
153
156
invariant_violated_structured (
154
157
const std::string &file,
@@ -171,6 +174,9 @@ invariant_violated_structured(
171
174
// / \param function : C string giving the name of the function.
172
175
// / \param line : The line number of the invariant
173
176
// / \param reason : brief description of the invariant violation.
177
+ #ifdef __GNUC__
178
+ __attribute__ ((noreturn))
179
+ #endif
174
180
inline void invariant_violated_string (
175
181
const std::string &file,
176
182
const std::string &function,
You can’t perform that action at this time.
0 commit comments