forked from amazingfate/loongoffice
...instead of a warning (as with Clang), so this follow-up to e16644fa1c042b56a1301f0476d7ddb71c8765ea "external/mysqlcppconn: Silence -Wdynamic-exception-spec errors" patches the (few) dynamic exception specifications out of external/mysqlcppconn completely Change-Id: I83a42f1c09e60c15fad1564cf7c42eb3370485da
16 lines
648 B
Plaintext
16 lines
648 B
Plaintext
--- cppconn/exception.h
|
|
+++ cppconn/exception.h
|
|
@@ -36,10 +36,10 @@
|
|
{
|
|
|
|
#define MEMORY_ALLOC_OPERATORS(Class) \
|
|
- void* operator new(size_t size) throw (std::bad_alloc) { return ::operator new(size); } \
|
|
+ void* operator new(size_t size) { return ::operator new(size); } \
|
|
void* operator new(size_t, void*) throw(); \
|
|
void* operator new(size_t, const std::nothrow_t&) throw(); \
|
|
- void* operator new[](size_t) throw (std::bad_alloc); \
|
|
+ void* operator new[](size_t); \
|
|
void* operator new[](size_t, void*) throw(); \
|
|
void* operator new[](size_t, const std::nothrow_t&) throw(); \
|
|
void* operator new(size_t N, std::allocator<Class>&);
|