diff options
| author | Paul Eggert | 2015-11-19 11:49:27 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-11-19 11:50:16 -0800 |
| commit | 62d787ed124726fd1f73dcfb7227d83bc5940fcc (patch) | |
| tree | f2fbfa26961709470101b1898cef1763100f0a8d /src/dynlib.c | |
| parent | c8a972b0c3082edfcca4a85562224499f75bfe9b (diff) | |
| download | emacs-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.c | 4 |
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 | ||
| 106 | int | 109 | int |
| 107 | dynlib_close (dynlib_handle_ptr h) | 110 | dynlib_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 | ||