8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 23:23:02 +01:00

Add noreturn attribute to raise functions.

This commit is contained in:
Adriano dos Santos Fernandes 2021-08-22 11:06:24 -03:00
parent df6fe56515
commit bdbacfe08c
2 changed files with 4 additions and 4 deletions

View File

@ -172,7 +172,7 @@ public:
void prepend(const StatusVector& v) throw() { implementation->prepend(v); } void prepend(const StatusVector& v) throw() { implementation->prepend(v); }
void assign(const StatusVector& v) throw() { implementation->assign(v); } void assign(const StatusVector& v) throw() { implementation->assign(v); }
void assign(const Exception& ex) throw() { implementation->assign(ex); } void assign(const Exception& ex) throw() { implementation->assign(ex); }
void raise() const; [[noreturn]] void raise() const;
ISC_STATUS copyTo(ISC_STATUS* dest) const throw() { return implementation->copyTo(dest); } ISC_STATUS copyTo(ISC_STATUS* dest) const throw() { return implementation->copyTo(dest); }
void copyTo(IStatus* dest) const throw() { implementation->copyTo(dest); } void copyTo(IStatus* dest) const throw() { implementation->copyTo(dest); }
void appendTo(IStatus* dest) const throw() { implementation->appendTo(dest); } void appendTo(IStatus* dest) const throw() { implementation->appendTo(dest); }

View File

@ -102,9 +102,9 @@ public:
const ISC_STATUS* value() const throw() { return m_status_vector; } const ISC_STATUS* value() const throw() { return m_status_vector; }
static void raise(const ISC_STATUS *status_vector); [[noreturn]] static void raise(const ISC_STATUS* status_vector);
static void raise(const Arg::StatusVector& statusVector); [[noreturn]] static void raise(const Arg::StatusVector& statusVector);
static void raise(const IStatus* status); [[noreturn]] static void raise(const IStatus* status);
protected: protected:
// Create exception with undefined status vector, this constructor allows // Create exception with undefined status vector, this constructor allows