diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-10-29 17:31:41 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-10-29 17:31:41 +0300 |
commit | db7266bde3cecf73fc62c871f27760fbf69bacca (patch) | |
tree | f8c15a08058e882ae312667b5685063fed1aca3f /gc_cpp.cc | |
parent | 4a148cc6794ccd7fe7dcbc2b5664815f5fd0a4a7 (diff) | |
download | bdwgc-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.cc | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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 { |