aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs-module.c
diff options
context:
space:
mode:
authorPaul Eggert2018-12-17 08:11:55 -0800
committerPaul Eggert2018-12-17 08:16:17 -0800
commite8bb0420a0a0aefc35932c9b5ee3167f6b237def (patch)
tree4b61862a52836289106930fc03d5673ff2b4656c /src/emacs-module.c
parentfa953b58afd39d396dab4d76a6ff0b8ba4040eb8 (diff)
downloademacs-e8bb0420a0a0aefc35932c9b5ee3167f6b237def.tar.gz
emacs-e8bb0420a0a0aefc35932c9b5ee3167f6b237def.zip
More porting to GCC 8 of --enable-gcc-warnings
Backport from master. I ran into this when building Emacs 26 with GCC 8 on Fedora 29 x86. * lwlib/lwlib-Xaw.h (xaw_update_one_value, xaw_popup_menu): * lwlib/lwlib-Xlw.h (xlw_update_one_value, xlw_pop_instance): * lwlib/lwlib.h (lw_allow_resizing, lw_set_main_areas) [!USE_MOTIF]: No longer const. * src/emacs-module.c: Ignore -Wcast-function-type.
Diffstat (limited to 'src/emacs-module.c')
-rw-r--r--src/emacs-module.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index c20902d0729..88049d29cf0 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -36,6 +36,11 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
36#include <intprops.h> 36#include <intprops.h>
37#include <verify.h> 37#include <verify.h>
38 38
39/* This module is lackadaisical about function casts. */
40#if GNUC_PREREQ (8, 0, 0)
41# pragma GCC diagnostic ignored "-Wcast-function-type"
42#endif
43
39/* We use different strategies for allocating the user-visible objects 44/* We use different strategies for allocating the user-visible objects
40 (struct emacs_runtime, emacs_env, emacs_value), depending on 45 (struct emacs_runtime, emacs_env, emacs_value), depending on
41 whether the user supplied the -module-assertions flag. If 46 whether the user supplied the -module-assertions flag. If