aboutsummaryrefslogtreecommitdiffstats
path: root/src/dynlib.c
diff options
context:
space:
mode:
authorPaul Eggert2015-11-19 11:49:27 -0800
committerPaul Eggert2015-11-19 11:50:16 -0800
commit62d787ed124726fd1f73dcfb7227d83bc5940fcc (patch)
treef2fbfa26961709470101b1898cef1763100f0a8d /src/dynlib.c
parentc8a972b0c3082edfcca4a85562224499f75bfe9b (diff)
downloademacs-62d787ed124726fd1f73dcfb7227d83bc5940fcc.tar.gz
emacs-62d787ed124726fd1f73dcfb7227d83bc5940fcc.zip
Fix minor module problems found by static checking
* src/dynlib.c (dynlib_close): #ifdef out for now, as it’s not used. * src/eval.c, src/lisp.h (lisp_eval_depth): Now static. * src/module.c (Fmodule_load): Fix pointer signedness bug. (Fmodule_call): Tell GCC that the default case is unreachable.
Diffstat (limited to 'src/dynlib.c')
-rw-r--r--src/dynlib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dynlib.c b/src/dynlib.c
index 491a08e0787..ed4f157d0fe 100644
--- a/src/dynlib.c
+++ b/src/dynlib.c
@@ -103,11 +103,15 @@ dynlib_error (void)
103 return dlerror (); 103 return dlerror ();
104} 104}
105 105
106/* FIXME: Currently there is no way to unload a module, so this
107 function is never used. */
108#if false
106int 109int
107dynlib_close (dynlib_handle_ptr h) 110dynlib_close (dynlib_handle_ptr h)
108{ 111{
109 return dlclose (h) == 0; 112 return dlclose (h) == 0;
110} 113}
114#endif
111 115
112#else 116#else
113 117