summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-12-17 08:11:55 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-12-17 08:16:17 -0800
commite8bb0420a0a0aefc35932c9b5ee3167f6b237def (patch)
tree4b61862a52836289106930fc03d5673ff2b4656c /lwlib
parentfa953b58afd39d396dab4d76a6ff0b8ba4040eb8 (diff)
downloademacs-e8bb0420a0a0aefc35932c9b5ee3167f6b237def.tar.gz
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 'lwlib')
-rw-r--r--lwlib/lwlib-Xaw.h6
-rw-r--r--lwlib/lwlib-Xlw.h6
-rw-r--r--lwlib/lwlib.h6
3 files changed, 4 insertions, 14 deletions
diff --git a/lwlib/lwlib-Xaw.h b/lwlib/lwlib-Xaw.h
index 363334b575e..644676f320d 100644
--- a/lwlib/lwlib-Xaw.h
+++ b/lwlib/lwlib-Xaw.h
@@ -15,15 +15,13 @@ void
xaw_update_one_widget (widget_instance *, Widget, widget_value *, Boolean);
void
-xaw_update_one_value (widget_instance *, Widget, widget_value *)
- ATTRIBUTE_CONST;
+xaw_update_one_value (widget_instance *, Widget, widget_value *);
void
xaw_destroy_instance (widget_instance *);
void
-xaw_popup_menu (Widget, XEvent *)
- ATTRIBUTE_CONST;
+xaw_popup_menu (Widget, XEvent *);
void
xaw_pop_instance (widget_instance *, Boolean);
diff --git a/lwlib/lwlib-Xlw.h b/lwlib/lwlib-Xlw.h
index 2d38eb7be66..b0790dc3a59 100644
--- a/lwlib/lwlib-Xlw.h
+++ b/lwlib/lwlib-Xlw.h
@@ -15,15 +15,13 @@ xlw_update_one_widget (widget_instance* instance, Widget widget,
void
xlw_update_one_value (widget_instance* instance, Widget widget,
- widget_value* val)
- ATTRIBUTE_CONST;
+ widget_value* val);
void
xlw_destroy_instance (widget_instance* instance);
void
-xlw_pop_instance (widget_instance* instance, Boolean up)
- ATTRIBUTE_CONST;
+xlw_pop_instance (widget_instance* instance, Boolean up);
void
xlw_popup_menu (Widget widget, XEvent * event);
diff --git a/lwlib/lwlib.h b/lwlib/lwlib.h
index 66730fd8d77..41d3e0139d2 100644
--- a/lwlib/lwlib.h
+++ b/lwlib/lwlib.h
@@ -111,15 +111,9 @@ void lw_refigure_widget (Widget w, Boolean doit);
Boolean lw_window_is_in_menubar (Window win, Widget menubar_widget);
/* Manage resizing: TRUE permits resizing widget w; FALSE disallows it. */
-#ifndef USE_MOTIF
-ATTRIBUTE_CONST
-#endif
void lw_allow_resizing (Widget w, Boolean flag);
/* Set up the main window. */
-#ifndef USE_MOTIF
-ATTRIBUTE_CONST
-#endif
void lw_set_main_areas (Widget parent,
Widget menubar,
Widget work_area);