diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-03-23 13:58:21 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-23 13:58:21 +0300 |
commit | 117737a7fa6c8611d049f74dd9407ba5ab1ca425 (patch) | |
tree | 6851cfc7dbb2c045a9493f78c4b19afb0d887313 | |
parent | 93c13ec6cc5e46eac9ba2571f9e5c3d1cee91d2e (diff) |
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>
-rw-r--r-- | winsup/cygwin/cxx.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/cxx.cc b/winsup/cygwin/cxx.cc index df7491b42..ea78e75e6 100644 --- a/winsup/cygwin/cxx.cc +++ b/winsup/cygwin/cxx.cc @@ -29,11 +29,15 @@ operator delete (void *p) { free (p); } + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wc++14-compat" void operator delete (void *p, size_t) { ::operator delete(p); } +#pragma GCC diagnostic pop void * operator new[] (std::size_t s) |