diff options
| author | Vladislav Vaintroub <wlad@mariadb.com> | 2018-02-06 23:32:02 +0000 |
|---|---|---|
| committer | Vladislav Vaintroub <wlad@mariadb.com> | 2018-02-07 20:19:40 +0000 |
| commit | 8fe04a3df37d65254142c6d1297eda32c1013f7f (patch) | |
| tree | 46942e3ffc78ca7de8ae593d759993f83fd85c68 /sql/sql_cursor.h | |
| parent | 282b652028ca79baa5a43aa5356d779a688947a8 (diff) | |
| download | mariadb-git-8fe04a3df37d65254142c6d1297eda32c1013f7f.tar.gz | |
Windows, compile : reenable previously disabled warning C4291
no matching operator delete found; memory will not be freed if initialization throws an exception
Added a no-op delete() for MEM_ROOT based placement-new()
Diffstat (limited to 'sql/sql_cursor.h')
| -rw-r--r-- | sql/sql_cursor.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_cursor.h b/sql/sql_cursor.h index 6fa72a2005d..740a658b7c0 100644 --- a/sql/sql_cursor.h +++ b/sql/sql_cursor.h @@ -62,6 +62,7 @@ public: virtual ~Server_side_cursor(); static void operator delete(void *ptr, size_t size); + static void operator delete(void *, MEM_ROOT *){} }; |
