mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-02 10:11:05 -08:00
Omit IF_LINT code that no longer seems needed
Nowadays GCC is smarter, or the Emacs code has mutated, or both, and now is as good a time as any to remove uses of IF_LINT that now seem to be unnecessary. * lib-src/emacsclient.c (set_local_socket): * lib-src/movemail.c (main) [MAIL_USE_MAILLOCK && HAVE_TOUCHLOCK]: * src/buffer.c (fix_start_end_in_overlays, fix_overlays_before): * src/casefiddle.c (casify_region): * src/charset.c (load_charset_map): * src/coding.c (decode_coding_object, encode_coding_object): * src/data.c (Fmake_variable_buffer_local, Fmake_local_variable) (cons_to_unsigned, cons_to_signed): * src/frame.c (make_frame, x_set_frame_parameters): * src/keyboard.c (read_event_from_main_queue): * src/regex.c (regex_compile): * src/syntax.c (back_comment): * src/window.c (Frecenter): * src/xfaces.c (Fx_list_fonts): Remove IF_LINT that no longer seems necessary. * src/image.c (png_load_body, jpeg_load_body): Simplify use of IF_LINT. * src/keyboard.c (read_char): Use IF_LINT (volatile) rather than a pragma dance to pacify GCC -Wclobbered. * src/xdisp.c (x_produce_glyphs): Rewrite to avoid need for IF_LINT. * src/xterm.c (x_connection_closed): Now _Noreturn, which should mean we do not need IF_LINT any more. (x_io_error_quitter): Now _Noreturn. Put an 'assume (false)’ at the end, to forestall warnings from older compilers.
This commit is contained in:
parent
cb379cbb7f
commit
237244bbd5
16 changed files with 46 additions and 61 deletions
|
|
@ -8015,12 +8015,12 @@ decode_coding_object (struct coding_system *coding,
|
|||
Lisp_Object dst_object)
|
||||
{
|
||||
ptrdiff_t count = SPECPDL_INDEX ();
|
||||
unsigned char *destination IF_LINT (= NULL);
|
||||
ptrdiff_t dst_bytes IF_LINT (= 0);
|
||||
unsigned char *destination;
|
||||
ptrdiff_t dst_bytes;
|
||||
ptrdiff_t chars = to - from;
|
||||
ptrdiff_t bytes = to_byte - from_byte;
|
||||
Lisp_Object attrs;
|
||||
ptrdiff_t saved_pt = -1, saved_pt_byte IF_LINT (= 0);
|
||||
ptrdiff_t saved_pt = -1, saved_pt_byte;
|
||||
bool need_marker_adjustment = 0;
|
||||
Lisp_Object old_deactivate_mark;
|
||||
|
||||
|
|
@ -8198,7 +8198,7 @@ encode_coding_object (struct coding_system *coding,
|
|||
ptrdiff_t chars = to - from;
|
||||
ptrdiff_t bytes = to_byte - from_byte;
|
||||
Lisp_Object attrs;
|
||||
ptrdiff_t saved_pt = -1, saved_pt_byte IF_LINT (= 0);
|
||||
ptrdiff_t saved_pt = -1, saved_pt_byte;
|
||||
bool need_marker_adjustment = 0;
|
||||
bool kill_src_buffer = 0;
|
||||
Lisp_Object old_deactivate_mark;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue