]> granicus.if.org Git - gc/commit
Fix 'replacement operator delete cannot be inline' GCC warning (Cygwin)
authorIvan Maidanski <ivmai@mail.ru>
Sat, 29 Oct 2016 14:31:41 +0000 (17:31 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 8 Nov 2016 20:55:27 +0000 (23:55 +0300)
commitd43cb973b099f391b9e1a1e859fcab04d3d82b8d
treeb0759fb9d3cdfe35e0f082f7878e937fd26567c2
parent20cc4d2cbbb53e83663658b1b474e8298d322fd6
Fix 'replacement operator delete cannot be inline' GCC warning (Cygwin)
(Cherry-pick commit 057011d from 'release-7_6' branch.)

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').
gc_cpp.cc
include/gc_cpp.h