summaryrefslogtreecommitdiff
path: root/libguile/stacks.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-03-17 11:42:50 +0100
committerAndy Wingo <wingo@pobox.com>2011-03-17 12:39:53 +0100
commit03976fee3b342f9da6fff41bc619c45a12372dfa (patch)
tree8735d72f60811f8ac4049b03a6ccaffaf2fd57ac /libguile/stacks.c
parent148c3317691d5b7d2414179031f87905454cb11a (diff)
downloadguile-03976fee3b342f9da6fff41bc619c45a12372dfa.tar.gz
fix code that causes warnings on gcc 4.6
* libguile/arrays.c (scm_i_read_array): * libguile/backtrace.c (display_backtrace_body): * libguile/filesys.c (scm_readdir) * libguile/i18n.c (chr_to_case): * libguile/ports.c (register_finalizer_for_port): * libguile/posix.c (scm_nice): * libguile/stacks.c (scm_make_stack): Clean up a number of set-but-unused vars. Thanks to Douglas Mencken for the report. * libguile/numbers.c (scm_log, scm_exp): Fix a few #if cases that should be #ifdef.
Diffstat (limited to 'libguile/stacks.c')
-rw-r--r--libguile/stacks.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libguile/stacks.c b/libguile/stacks.c
index 267b3c404..31bd91b13 100644
--- a/libguile/stacks.c
+++ b/libguile/stacks.c
@@ -247,7 +247,6 @@ SCM_DEFINE (scm_make_stack, "make-stack", 1, 0, 1,
#define FUNC_NAME s_scm_make_stack
{
long n;
- int maxp;
SCM frame;
SCM stack;
SCM inner_cut, outer_cut;
@@ -289,7 +288,6 @@ SCM_DEFINE (scm_make_stack, "make-stack", 1, 0, 1,
/* Count number of frames. Also get stack id tag and check whether
there are more stackframes than we want to record
(SCM_BACKTRACE_MAXDEPTH). */
- maxp = 0;
n = stack_depth (frame);
/* Make the stack object. */