gnu.emacs/lwlib
Paul Eggert 39f42a8248 Pacify -Wuseless-cast with Lucid toolkit
Problem reported by Jonathan Mitchell (bug#81554).
Also, clean up the const situation elsewhere, e.g.,
with Motif toolkit, and with no X toolkit.
* configure.ac (_CONST_X_STRING): New macro, when using X11.
This causes most X11 include files to use ‘const char *’ for
readonly strings, rather than the ‘char *’ that was needed for K&R C.
* lwlib/lwlib-Xaw.c (xaw_generic_callback):
* lwlib/lwlib.c (lw_get_widget_value_for_widget)
(lw_internal_update_other_instances):
* lwlib/xlwmenu.c (openXftFont):
* src/xdisp.c (update_redisplay_ticks):
Use char const *, not char *, for readonly strings.
* lwlib/lwlib-Xm.c (update_one_menu_entry):
A cast is needed now that XtName returns char const *,
in a context where Motif wants char *, not String.
* lwlib/xlwmenu.c (openXftFont): Put newly allocated string
into its own local variable, so that main local can be char const *.
* src/emacs.c (android_emacs_init):
* src/xterm.c (x_term_init):
Pacify both -Wuseless-cast and -Wdiscarded-qualifiers.
* src/widget.c (resources, emacsFrameClassRec):
* src/xdisp.c (update_redisplay_ticks):
* src/xfns.c (x_window):
* src/xmenu.c (create_and_show_popup_menu):
* src/xterm.c (emacs_options) [USE_X_TOOLKIT]:
Omit now-useless casts.
* src/xfns.c (Fx_file_dialog):
Use char *, not String, for a mutable string.
2026-08-05 23:49:26 -05:00
..
ChangeLog.1 ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
deps.mk ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lwlib-int.h ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lwlib-utils.c ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lwlib-utils.h Don't link libXft when using cairo 2019-04-24 12:31:37 +09:00
lwlib-widget.h ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lwlib-Xaw.c Pacify -Wuseless-cast with Lucid toolkit 2026-08-05 23:49:26 -05:00
lwlib-Xaw.h More porting to GCC 8 of --enable-gcc-warnings 2018-12-17 08:16:17 -08:00
lwlib-Xlw.c ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
lwlib-Xlw.h More porting to GCC 8 of --enable-gcc-warnings 2018-12-17 08:16:17 -08:00
lwlib-Xm.c Pacify -Wuseless-cast with Lucid toolkit 2026-08-05 23:49:26 -05:00
lwlib-Xm.h Prefer HTTPS to FTP and HTTP in documentation 2017-09-13 15:54:37 -07:00
lwlib.c Pacify -Wuseless-cast with Lucid toolkit 2026-08-05 23:49:26 -05:00
lwlib.h ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
Makefile.in ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
README Generate a ChangeLog file from commit logs 2015-04-07 00:00:55 -07:00
xlwmenu.c Pacify -Wuseless-cast with Lucid toolkit 2026-08-05 23:49:26 -05:00
xlwmenu.h ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00
xlwmenuP.h ; Add 2026 to copyright years. 2026-01-01 12:54:34 +00:00

This subdirectory contains the Lucid Widget Library (lwlib), which
provides a uniform interface to a few different X toolkits.  The
library was written by Lucid, Inc and released under the terms of the
GPL version 1 (or later).  It is not considered part of GNU Emacs.

This version of the library differs from the original as described in
the ChangeLog.1 file.