Turn off warning about deprecated usage of __free_hook.
authorNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:46:36 +0000 (16:46 -0500)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Sun, 6 Dec 2015 21:51:10 +0000 (16:51 -0500)
commitd2cfef1bb74e905f85dab23f3b1dfcf474eb6568
tree57bd92cac7195703e4869e35b1540412e095feed
parentf8b54ac02452cfa17c403a08beed97efa245538c
Turn off warning about deprecated usage of __free_hook.

Since this is to try and avoid crashes on shutdown, it will either
be available and work, or linking will fail, which will be detected
by configure, and thus we will not use it.

* configure.ac: Add HAVE_FREE_HOOK when __free_hook is available.
Also fix detection of __after_morecore_hook.
* src/emacs.c (voodoo_free_hook): Ignore the warning about
deprecated variable.
* src/emacs.c (Fkill_emacs): Ditto.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
configure.ac
src/emacs.c