changeset 4531:b58af9a9765d bytecomp-coding-system-2008-10-29

ChangeLogs for G++ warning cleanup.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sun, 02 Nov 2008 03:59:54 +0900
parents 9b182263dbd7
children 16906fefc8df
files lwlib/ChangeLog src/ChangeLog
diffstat 2 files changed, 159 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwlib/ChangeLog	Sun Nov 02 03:11:29 2008 +0900
+++ b/lwlib/ChangeLog	Sun Nov 02 03:59:54 2008 +0900
@@ -1,3 +1,92 @@
+2008-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
+
+	G++ 4.3 complains a lot about implicit conversions of string
+	literals (const char *) to char *.  Shut it up.
+
+	* xt-wrappers.h: New file.
+	Contains wrappers for Xt functions and macros for C++
+	type-correctness and/or convenience.
+
+	* lwlib.h:
+	* lwlib-Xm.c:
+	* lwlib-Xaw.c:
+	#include xt-wrappers.h.
+
+	* xlwcheckbox.c:
+	* xlwgauge.c:
+	* xlwmenu.c:
+	* xlwradio.c:
+	* xlwscrollbar.c:
+	* xlwtabs.c:
+	#include xt-wrappers.h.
+	Cast class name to String.
+	Cast action names to String.
+	Rewrite resources to use Xt_RESOURCE.
+
+	* lwlib.h (lw_get_value_arg):
+	* lwlib.c (lw_get_value_arg):
+	Declare String argument const.
+
+	* lwlib-Xaw.c (xaw_actions):
+	Cast to string.
+
+	* lwlib-Xaw.c (xaw_update_scrollbar):
+	* lwlib-Xaw.c (xaw_update_one_widget):
+	* lwlib-Xaw.c (xaw_update_one_value):
+	* lwlib-Xaw.c (make_dialog):
+	* lwlib-Xaw.c (xaw_generic_callback):
+	* lwlib-Xaw.c (wm_delete_window):
+	* lwlib-Xaw.c (xaw_create_scrollbar):
+	* lwlib-Xaw.c (xaw_create_button):
+	* lwlib-Xaw.c (xaw_create_label):
+	* lwlib-Xaw.c (xaw_create_progress):
+	* lwlib-Xaw.c (xaw_create_text_field):
+	* lwlib-Xaw.c (xaw_creation_table):
+	* lwlib-Xlw.c (xlw_create_menubar):
+	* lwlib-Xlw.c (xlw_create_popup_menu):
+	* lwlib-Xlw.c (xlw_create_scrollbar):
+	* lwlib-Xlw.c (xlw_update_scrollbar):
+	* lwlib-Xlw.c (xlw_create_tab_control):
+	* lwlib-Xlw.c (build_tabs_in_widget):
+	* lwlib-Xlw.c (xlw_create_clip_window):
+	* lwlib-Xlw.c (xlw_update_one_widget):
+	* lwlib-Xm.c (xm_update_label):
+	* lwlib-Xm.c (xm_update_pushbutton):
+	* lwlib-Xm.c (xm_update_progress):
+	* lwlib-Xm.c (xm_update_toggle):
+	* lwlib-Xm.c (xm_update_radiobox):
+	* lwlib-Xm.c (make_menu_in_widget):
+	* lwlib-Xm.c (update_one_menu_entry):
+	* lwlib-Xm.c (xm_update_scrollbar):
+	* lwlib-Xm.c (xm_update_one_value):
+	* lwlib-Xm.c (make_dialog):
+	* lwlib-Xm.c (recenter_widget):
+	* lwlib-Xm.c (recycle_instance):
+	* lwlib-Xm.c (make_menubar):
+	* lwlib-Xm.c (make_scrollbar):
+	* lwlib-Xm.c (xm_create_button):
+	* lwlib-Xm.c (xm_create_progress):
+	* lwlib-Xm.c (xm_create_text_field):
+	* lwlib-Xm.c (xm_create_label):
+	* lwlib-Xm.c (xm_create_combo_box):
+	* lwlib-Xm.c (xm_popup_menu):
+	* lwlib-Xm.c (set_min_dialog_size):
+	* lwlib-Xm.c (do_call):
+	* lwlib-Xm.c (xm_generic_callback):
+	* xlwcheckbox.c (offset):
+	* xlwgauge.c (offset):
+	* xlwgauge.c (actionsList):
+	* xlwmenu.c (xlwMenuResources):
+	* xlwmenu.c (xlwMenuActionsList):
+	* xlwmenu.c (xlwMenuClassRec):
+	* xlwmenu.c (nameResource):
+	* xlwmenu.c (parameterize_string):
+	* xlwradio.c (actionsList):
+	* xlwscrollbar.c (offset):
+	* xlwscrollbar.c (actions):
+	Use Xt_SET_ARG, Xt_SET_VALUE, and Xt_GET_VALUE instead of raw Xt
+	equivalents.
+
 2008-10-26  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* lwlib-Xm.c (xm_update_progress): Set all values!
--- a/src/ChangeLog	Sun Nov 02 03:11:29 2008 +0900
+++ b/src/ChangeLog	Sun Nov 02 03:59:54 2008 +0900
@@ -1,3 +1,73 @@
+2008-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
+
+	G++ 4.3 complains a lot about implicit conversions of string
+	literals (const char *) to char *.  Shut it up.
+
+	* console-x.h:
+	* EmacsFrame.c:
+	* EmacsManager.c:
+	* EmacsShell-sub.c:
+	#include ../lwlib/xt-wrappers.h.
+	Cast class name to String.
+	Cast action names to String.
+	Rewrite resources to use Xt_RESOURCE.
+
+	* console-x.h:
+	Move Xt_SET_VALUE and Xt_GET_VALUE to ../lwlib/xt-wrappers.h.
+
+	* console-x.h (describe_XRectangle):
+	* input-method-xlib.c (describe_XRectangle):
+	* emacs.c (argmatch):
+	* emacs.c (check_compatible_window_system):
+	* emodules.c (Fload_module):
+	* emodules.c (Funload_module):
+	* event-stream.c (external_debugging_print_event):
+	* file-coding.h (struct subsidiary_type):
+	* file-coding.c (struct subsidiary_type):
+	* file-coding.c (setup_eol_coding_systems):
+	* file-coding.c (make_coding_system_1):
+	* file-coding.c (make_internal_coding_system):
+	* gif_io.c (GifErrorString:
+	* gif_io.c (GetGifError):
+	* input-method-xlib.c (XIM_init_frame):
+	* mule-coding.c (ccl_putprop):
+	* print.c (printing_major_badness):
+	* redisplay.c (generate_fstring_runes):
+	Declare String or char * argument or variable as const.
+
+	* EmacsFrame.c (EmacsFrameSetCharSize):
+	* EmacsShell-sub.c (update_size_hints_internal):
+	* EmacsShell-sub.c (SuperClassRootGeometryManager):
+	* device-x.c (emacs_options):
+	* device-x.c (compute_x_app_name):
+	* device-x.c (have_xemacs_resources_in_xrdb):
+	* device-x.c (x_init_device):
+	* event-Xt.c (x_fallback_resources):
+	* event-Xt.c (widgetActionsList):
+	* event-Xt.c (emacs_Xt_event_add_widget_actions):
+	* frame-x.c (x_wm_set_cell_size):
+	* frame-x.c (x_wm_set_variable_size):
+	* frame-x.c (x_set_frame_text_value):
+	* frame-x.c (x_initialize_frame_size):
+	* frame-x.c (x_create_widgets):
+	* frame-x.c (x_set_frame_icon):
+	* frame-x.c (x_set_frame_position):
+	* frame-x.c (x_update_frame_external_traits):
+	* glyphs-x.c (x_redisplay_widget):
+	* glyphs-x.c (update_tab_widget_face):
+	* glyphs-x.c (x_widget_instantiate):
+	* glyphs-x.c (x_button_instantiate):
+	* glyphs-x.c (x_progress_gauge_redisplay):
+	* glyphs-x.c (x_tab_control_redisplay):
+	* menubar-x.c (make_dummy_xbutton_event):
+	Use Xt_SET_ARG, Xt_SET_VALUE, and Xt_GET_VALUE instead of raw Xt
+	equivalents.
+	Declare String or char * argument or local variable as const.
+	Cast string literals to char* (or equivalent).
+
+	* input-method-xlib.c:
+	Use Xt_RESOURCE.
+
 2008-11-01  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.