diff options
| author | Paul Eggert | 2011-04-16 16:11:35 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-16 16:11:35 -0700 |
| commit | fd35b6f96777be3305879a9ca60ab5befb254042 (patch) | |
| tree | db72c649acdc7f53d9672fba88b6a08b3601cdda /src/ChangeLog | |
| parent | c4354cb4f4a3982331180439120ca72734d49cc5 (diff) | |
| parent | 399c71d323b8beef139437311c78440d0033c652 (diff) | |
| download | emacs-fd35b6f96777be3305879a9ca60ab5befb254042.tar.gz emacs-fd35b6f96777be3305879a9ca60ab5befb254042.zip | |
Static checks with GCC 4.6.0 and non-default toolkits.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 104 |
1 files changed, 104 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d9f764cde85..908f885cafd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,107 @@ | |||
| 1 | 2011-04-16 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Static checks with GCC 4.6.0 and non-default toolkits. | ||
| 4 | |||
| 5 | * s/sol2-6.h, s/unixware.h (PTY_TTY_NAME_SPRINTF): Protoize decl. | ||
| 6 | |||
| 7 | * process.c (keyboard_bit_set): Define only if SIGIO. | ||
| 8 | (send_process_trap): Mark it with NO_RETURN if it doesn't return. | ||
| 9 | (send_process): Repair possible setjmp clobbering. | ||
| 10 | |||
| 11 | * s/usg5-4-common.h (SETUP_SLAVE_PTY): Don't pass extra arg to 'fatal'. | ||
| 12 | |||
| 13 | * eval.c: Include <stdio.h>, for vsnprintf on non-GNU/Linux hosts. | ||
| 14 | |||
| 15 | * data.c (arith_error): Mark with NO_RETURN if it doesn't return. | ||
| 16 | |||
| 17 | * alloc.c (bytes_used_when_full, SPARE_MEMORY, BYTES_USED): | ||
| 18 | Define only if needed. | ||
| 19 | |||
| 20 | * sysdep.c (_FILE_OFFSET_BITS): Make this hack even uglier | ||
| 21 | by pacifying GCC about it. Maybe it's time to retire it? | ||
| 22 | * xfaces.c (USG, __TIMEVAL__): Likewise. | ||
| 23 | |||
| 24 | * dispextern.h (struct redisplay_interface): Rename param | ||
| 25 | to avoid shadowing. | ||
| 26 | * termhooks.h (struct terminal): Likewise. | ||
| 27 | * xterm.c (xembed_send_message): Likewise. | ||
| 28 | |||
| 29 | * insdel.c (make_gap_smaller): Define only if | ||
| 30 | USE_MMAP_FOR_BUFFERS || REL_ALLOC || DOUG_LEA_MALLOC. | ||
| 31 | |||
| 32 | * keyboard.c (read_char): Make a var volatile so longjmp won't clobber | ||
| 33 | it. | ||
| 34 | |||
| 35 | * emacs.c (MAX_HEAP_BSS_DIFF, my_edata): Move to where they're used, | ||
| 36 | so that we aren't warned about unused symbols. | ||
| 37 | |||
| 38 | * xfns.c (Fx_file_dialog): Rename local to avoid shadowing. | ||
| 39 | |||
| 40 | * xdisp.c (x_produce_glyphs): Mark var as initialized (Bug#8512). | ||
| 41 | |||
| 42 | * xfns.c (x_real_positions): Mark locals as initialized. | ||
| 43 | |||
| 44 | * xmenu.c (xmenu_show): Don't use uninitialized vars. | ||
| 45 | |||
| 46 | * xterm.c: Fix problems found by static analysis with other toolkits. | ||
| 47 | (toolkit_scroll_bar_interaction): Define and use only if USE_X_TOOLKIT. | ||
| 48 | (x_dispatch_event): Declare static if USE_GTK, and | ||
| 49 | define if USE_GTK || USE_X_TOOLKIT. | ||
| 50 | (SET_SAVED_BUTTON_EVENT): Define only if USE_X_TOOLKIT || USE_GTK. | ||
| 51 | * xterm.h (x_dispatch_event): Extern only if USE_X_TOOLKIT. | ||
| 52 | * xterm.c, xterm.h (x_mouse_leave): Bring this function back, but only if | ||
| 53 | defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK. | ||
| 54 | |||
| 55 | * xmenu.c (menu_help_callback): Pointer type fixes. | ||
| 56 | Use const pointers when pointing at readonly data. Avoid pointer | ||
| 57 | signedness clashes. | ||
| 58 | (FALSE): Remove unused macro. | ||
| 59 | (update_frame_menubar): Remove unused decl. | ||
| 60 | |||
| 61 | * xfns.c (Fx_hide_tip): Move locals to avoid shadowing. | ||
| 62 | |||
| 63 | * menu.c (push_submenu_start, push_submenu_end): Do not define unless | ||
| 64 | USE_X_TOOLKIT || USE_GTK || HAVE_NS || defined HAVE_NTGUI. | ||
| 65 | (single_menu_item): Rename local to avoid shadowing. | ||
| 66 | |||
| 67 | * keyboard.c (make_lispy_event): Remove unused local var. | ||
| 68 | |||
| 69 | * frame.c, frame.h (x_get_resource_string): Bring this back, but | ||
| 70 | only if HAVE_X_WINDOWS && !USE_X_TOOLKIT. | ||
| 71 | |||
| 72 | * bitmaps: Change bitmaps from unsigned char back to the X11 | ||
| 73 | compatible char. Avoid the old compiler warnings about | ||
| 74 | out-of-range initializers by using, for example, '\xab' rather | ||
| 75 | than 0xab. | ||
| 76 | |||
| 77 | * xgselect.c (xgselect_initialize): Check vs interface | ||
| 78 | even if ! (defined (USE_GTK) || defined (HAVE_GCONF)). | ||
| 79 | |||
| 80 | * xmenu.c (xmenu_show): Rename parm to avoid shadowing. | ||
| 81 | |||
| 82 | * xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers | ||
| 83 | to read-only memory. | ||
| 84 | |||
| 85 | * fns.c (vector): Remove; this old hack is no longer needed. | ||
| 86 | |||
| 87 | * xsmfns.c (create_client_leader_window): Rename shadowing arg. | ||
| 88 | Remove unused var. | ||
| 89 | (gdk_x11_set_sm_client_id) [!USE_GTK]: Don't define. | ||
| 90 | |||
| 91 | * xrdb.c (x_load_resources): Omit unused local. | ||
| 92 | |||
| 93 | * xfns.c (free_frame_menubar, atof): Remove duplicate decls. | ||
| 94 | (x_window): Rename locals to avoid shadowing. | ||
| 95 | (USG): Use the kludged USG macro, to pacify gcc. | ||
| 96 | |||
| 97 | * xterm.c (x_alloc_nearest_color_for_widget): Remove; unused. | ||
| 98 | (x_term_init): Remove local to avoid shadowing. | ||
| 99 | |||
| 100 | * xfns.c, xterm.c (_XEditResCheckMessages): Protoize decl. | ||
| 101 | |||
| 102 | * xdisp.c, dispextern.h (set_vertical_scroll_bar): Now extern if | ||
| 103 | USE_TOOLKIT_SCROLL_BARS && !USE_GTK, as xterm.c needs it then. | ||
| 104 | |||
| 1 | 2011-04-16 Eli Zaretskii <eliz@gnu.org> | 105 | 2011-04-16 Eli Zaretskii <eliz@gnu.org> |
| 2 | 106 | ||
| 3 | * gnutls.c (Fgnutls_boot): Don't pass Lisp_Object to `error'. | 107 | * gnutls.c (Fgnutls_boot): Don't pass Lisp_Object to `error'. |