cxx.cc: Disable C++14 warning for new sized delete operator

As long as we're not building in C++14 mode, the definition of the
sized delete operator results in a compatibility warning.

	* cxx.cc (operator delete): Disable C++14 warning for sized	variant.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2016-03-23 11:58:21 +01:00
parent 93c13ec6cc
commit 117737a7fa
1 changed files with 4 additions and 0 deletions

View File

@ -29,11 +29,15 @@ operator delete (void *p)
{ {
free (p); free (p);
} }
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wc++14-compat"
void void
operator delete (void *p, size_t) operator delete (void *p, size_t)
{ {
::operator delete(p); ::operator delete(p);
} }
#pragma GCC diagnostic pop
void * void *
operator new[] (std::size_t s) operator new[] (std::size_t s)