]> git.eshelyaron.com Git - emacs.git/commit
Avoid suppressing -Wcast-function-type warning.
authorPhilipp Stephani <phst@google.com>
Sat, 4 May 2019 23:56:15 +0000 (01:56 +0200)
committerPhilipp Stephani <phst@google.com>
Sat, 4 May 2019 23:56:15 +0000 (01:56 +0200)
commitb5aeb86a7ef4c5cbfbbd95e72568b4b5e48e9bae
treebcd80bee9ba416dcb3750bf9e43de2df00e3ac16
parenta976602066211f8820c0a2976afe81cad691a2c9
Avoid suppressing -Wcast-function-type warning.

GCC special-cases the type ‘void (*)(void)’ to not emit warnings when
cast, see
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wcast-function-type.
Make use of this to remove a warning suppression.

* src/dynlib.h: Use void (*)(void) as generic function pointer type.

* src/emacs-module.c: Remove warning suppression.
src/dynlib.h
src/emacs-module.c