diff options
| author | Paul Eggert | 2013-07-26 09:39:55 +0100 |
|---|---|---|
| committer | Paul Eggert | 2013-07-26 09:39:55 +0100 |
| commit | d5a7a9d94b84c99bc0a7178002d83ea7754732c0 (patch) | |
| tree | 6208a8575ec30ce306b57cc82c14a25134ad17b1 /src/eval.c | |
| parent | 56ea72917a7a700e29cf6c115fd1cd75ad782e9e (diff) | |
| download | emacs-d5a7a9d94b84c99bc0a7178002d83ea7754732c0.tar.gz emacs-d5a7a9d94b84c99bc0a7178002d83ea7754732c0.zip | |
Fix minor problems found by static checking.
* eval.c (get_backtrace_frame, backtrace_eval_unrewind): Now static.
(backtrace_eval_unrewind): ';' -> '{}' to pacify GCC.
Diffstat (limited to 'src/eval.c')
| -rw-r--r-- | src/eval.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/eval.c b/src/eval.c index e55a3b259e0..bb5d5efc9ba 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -3424,7 +3424,7 @@ Output stream used is value of `standard-output'. */) | |||
| 3424 | return Qnil; | 3424 | return Qnil; |
| 3425 | } | 3425 | } |
| 3426 | 3426 | ||
| 3427 | union specbinding * | 3427 | static union specbinding * |
| 3428 | get_backtrace_frame (Lisp_Object nframes, Lisp_Object base) | 3428 | get_backtrace_frame (Lisp_Object nframes, Lisp_Object base) |
| 3429 | { | 3429 | { |
| 3430 | union specbinding *pdl = backtrace_top (); | 3430 | union specbinding *pdl = backtrace_top (); |
| @@ -3483,7 +3483,7 @@ nearest activation frame. */) | |||
| 3483 | pointer-reversal trick. As it turns out, the rewind does the same as the | 3483 | pointer-reversal trick. As it turns out, the rewind does the same as the |
| 3484 | unwind, except it starts from the other end of the spepdl stack, so we use | 3484 | unwind, except it starts from the other end of the spepdl stack, so we use |
| 3485 | the same function for both unwind and rewind. */ | 3485 | the same function for both unwind and rewind. */ |
| 3486 | void | 3486 | static void |
| 3487 | backtrace_eval_unrewind (int distance) | 3487 | backtrace_eval_unrewind (int distance) |
| 3488 | { | 3488 | { |
| 3489 | union specbinding *tmp = specpdl_ptr; | 3489 | union specbinding *tmp = specpdl_ptr; |
| @@ -3524,10 +3524,11 @@ backtrace_eval_unrewind (int distance) | |||
| 3524 | break; | 3524 | break; |
| 3525 | } | 3525 | } |
| 3526 | else | 3526 | else |
| 3527 | /* FALLTHROUGH! | 3527 | { |
| 3528 | NOTE: we only ever come here if make_local_foo was used for | 3528 | /* FALLTHROUGH! |
| 3529 | the first time on this var within this let. */ | 3529 | NOTE: we only ever come here if make_local_foo was used for |
| 3530 | ; | 3530 | the first time on this var within this let. */ |
| 3531 | } | ||
| 3531 | case SPECPDL_LET_DEFAULT: | 3532 | case SPECPDL_LET_DEFAULT: |
| 3532 | { | 3533 | { |
| 3533 | Lisp_Object sym = specpdl_symbol (tmp); | 3534 | Lisp_Object sym = specpdl_symbol (tmp); |