summaryrefslogtreecommitdiff
path: root/gc_cpp.cc
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2016-10-29 17:31:41 +0300
committerIvan Maidanski <ivmai@mail.ru>2016-10-29 17:31:41 +0300
commitdb7266bde3cecf73fc62c871f27760fbf69bacca (patch)
treef8c15a08058e882ae312667b5685063fed1aca3f /gc_cpp.cc
parent4a148cc6794ccd7fe7dcbc2b5664815f5fd0a4a7 (diff)
downloadbdwgc-db7266bde3cecf73fc62c871f27760fbf69bacca.tar.gz
Fix 'replacement operator delete cannot be inline' GCC warning (Cygwin)
(fix commits 83e0a2c, 3379238) This commit also eliminates "operator delete is missing exception specification throw()" compiler warning. * gc_cpp.cc (operator delete): Define unconditionally (i.e. for Cygwin too). * include/gc_cpp.h [__CYGWIN__]: Do not include "new" header. * include/gc_cpp.h [__CYGWIN__] (operator delete): Remove (as replacement function 'operator delete' cannot be declared 'inline').
Diffstat (limited to 'gc_cpp.cc')
-rw-r--r--gc_cpp.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gc_cpp.cc b/gc_cpp.cc
index 8718f5a1..6f25e336 100644
--- a/gc_cpp.cc
+++ b/gc_cpp.cc
@@ -49,11 +49,9 @@ built-in "new" and "delete".
return GC_MALLOC_UNCOLLECTABLE(size);
}
-# if !defined(__CYGWIN__)
- void operator delete(void* obj) GC_DECL_DELETE_THROW {
- GC_FREE(obj);
- }
-# endif // !__CYGWIN__
+ void operator delete(void* obj) GC_DECL_DELETE_THROW {
+ GC_FREE(obj);
+ }
# ifdef GC_OPERATOR_NEW_ARRAY
void* operator new[](size_t size) GC_DECL_NEW_THROW {