aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2016-05-30 16:09:25 -0700
committerPaul Eggert2016-05-30 16:13:04 -0700
commit237244bbd5ce753bcdf79634561de515bd76c687 (patch)
treefa395a0e84b27c4755d3fc3ff0f06b1bfdd2b693 /lib-src
parentcb379cbb7fc617f897e7dbc3ce45bf99ea3d1f87 (diff)
downloademacs-237244bbd5ce753bcdf79634561de515bd76c687.tar.gz
emacs-237244bbd5ce753bcdf79634561de515bd76c687.zip
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.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/emacsclient.c2
-rw-r--r--lib-src/movemail.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index aab9c4b62f5..7792d0a2c74 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1195,7 +1195,7 @@ set_local_socket (const char *local_socket_name)
1195 int use_tmpdir = 0; 1195 int use_tmpdir = 0;
1196 int saved_errno; 1196 int saved_errno;
1197 const char *server_name = local_socket_name; 1197 const char *server_name = local_socket_name;
1198 const char *tmpdir IF_LINT ( = NULL); 1198 const char *tmpdir;
1199 char *tmpdir_storage = NULL; 1199 char *tmpdir_storage = NULL;
1200 char *socket_name_storage = NULL; 1200 char *socket_name_storage = NULL;
1201 1201
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 90e683ed855..45779dae5c2 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -338,7 +338,7 @@ main (int argc, char **argv)
338 int lockcount = 0; 338 int lockcount = 0;
339 int status = 0; 339 int status = 0;
340#if defined (MAIL_USE_MAILLOCK) && defined (HAVE_TOUCHLOCK) 340#if defined (MAIL_USE_MAILLOCK) && defined (HAVE_TOUCHLOCK)
341 time_t touched_lock IF_LINT (= 0); 341 time_t touched_lock;
342#endif 342#endif
343 343
344 if (setuid (getuid ()) < 0 || setregid (-1, real_gid) < 0) 344 if (setuid (getuid ()) < 0 || setregid (-1, real_gid) < 0)