aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
authorPaul Eggert2013-03-13 00:27:34 -0700
committerPaul Eggert2013-03-13 00:27:34 -0700
commitd9df6f40e326f3f5487b7c50b99bf5112262badc (patch)
tree7926ff98290d937c28969a66e1f37b7bf0a3ffe2 /src/keymap.c
parent2c3f72f4b5f7d00cf0131998957c24812c8f6a53 (diff)
downloademacs-d9df6f40e326f3f5487b7c50b99bf5112262badc.tar.gz
emacs-d9df6f40e326f3f5487b7c50b99bf5112262badc.zip
Static checking by Sun C 5.12.
* lib-src/etags.c (analyse_regex): Omit unreachable code. * src/alloc.c (buffer_memory_full) [REL_ALLOC]: * src/bytecode.c (exec_byte_code): * src/dispnew.c (init_display): * src/eval.c (error): * src/fileio.c (Fsubstitute_in_file_name): * src/keyboard.c (Fevent_convert_list): * src/keymap.c (Fsingle_key_description): * src/term.c (maybe_fatal, fatal): * src/xfns.c (Fx_display_backing_store, Fx_display_visual_class): * src/xsmfns.c (Fhandle_save_session): Omit unreachable code. * src/keymap.c (map_keymap_char_table_item): Cast void * to a function pointer type; the C Standard requires this.
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 922c1703edf..00eefb375ef 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -565,7 +565,8 @@ map_keymap_char_table_item (Lisp_Object args, Lisp_Object key, Lisp_Object val)
565{ 565{
566 if (!NILP (val)) 566 if (!NILP (val))
567 { 567 {
568 map_keymap_function_t fun = XSAVE_POINTER (args, 0); 568 map_keymap_function_t fun
569 = (map_keymap_function_t) XSAVE_POINTER (args, 0);
569 /* If the key is a range, make a copy since map_char_table modifies 570 /* If the key is a range, make a copy since map_char_table modifies
570 it in place. */ 571 it in place. */
571 if (CONSP (key)) 572 if (CONSP (key))
@@ -2310,7 +2311,6 @@ around function keys and event symbols. */)
2310 return Fcopy_sequence (key); 2311 return Fcopy_sequence (key);
2311 else 2312 else
2312 error ("KEY must be an integer, cons, symbol, or string"); 2313 error ("KEY must be an integer, cons, symbol, or string");
2313 return Qnil;
2314} 2314}
2315 2315
2316static char * 2316static char *