summaryrefslogtreecommitdiff
path: root/sql/sql_select.h
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-02-06 23:32:02 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2018-02-07 20:19:40 +0000
commit8fe04a3df37d65254142c6d1297eda32c1013f7f (patch)
tree46942e3ffc78ca7de8ae593d759993f83fd85c68 /sql/sql_select.h
parent282b652028ca79baa5a43aa5356d779a688947a8 (diff)
downloadmariadb-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_select.h')
-rw-r--r--sql/sql_select.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_select.h b/sql/sql_select.h
index 4642fe04dbc..b3646599f90 100644
--- a/sql/sql_select.h
+++ b/sql/sql_select.h
@@ -2115,6 +2115,7 @@ public:
*/
static void *operator new(size_t size, THD *thd) throw();
static void operator delete(void *ptr, size_t size) { TRASH(ptr, size); }
+ static void operator delete(void *, THD *) throw(){}
Virtual_tmp_table(THD *thd)
{