replace noreturn attribute with standard C++ version
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
static void
|
||||
oom()
|
||||
{
|
||||
|
||||
@@ -71,7 +71,6 @@
|
||||
#define gcc_deprecated __attribute__((deprecated))
|
||||
#define gcc_may_alias __attribute__((may_alias))
|
||||
#define gcc_malloc __attribute__((malloc))
|
||||
#define gcc_noreturn __attribute__((noreturn))
|
||||
#define gcc_packed __attribute__((packed))
|
||||
#define gcc_printf(a,b) __attribute__((format(printf, a, b)))
|
||||
#define gcc_pure __attribute__((pure))
|
||||
@@ -101,7 +100,6 @@
|
||||
#define gcc_deprecated
|
||||
#define gcc_may_alias
|
||||
#define gcc_malloc
|
||||
#define gcc_noreturn
|
||||
#define gcc_packed
|
||||
#define gcc_printf(a,b)
|
||||
#define gcc_pure
|
||||
|
||||
@@ -42,14 +42,14 @@
|
||||
* the std::exception_ptr itself.
|
||||
*/
|
||||
template<typename T>
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
inline void
|
||||
ThrowException(T &&t)
|
||||
{
|
||||
throw std::forward<T>(t);
|
||||
}
|
||||
|
||||
gcc_noreturn
|
||||
[[noreturn]]
|
||||
inline void
|
||||
ThrowException(std::exception_ptr ep)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user