mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 17:50:29 +02:00
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.
This commit is contained in:
parent
148c331769
commit
03976fee3b
8 changed files with 14 additions and 31 deletions
|
@ -429,7 +429,7 @@ display_backtrace_body (struct display_backtrace_args *a)
|
|||
#define FUNC_NAME "display_backtrace_body"
|
||||
{
|
||||
int n_frames, beg, end, n, i, j;
|
||||
int nfield, indent_p, indentation;
|
||||
int nfield, indentation;
|
||||
SCM frame, sport, print_state;
|
||||
SCM last_file;
|
||||
scm_print_state *pstate;
|
||||
|
@ -482,9 +482,6 @@ display_backtrace_body (struct display_backtrace_args *a)
|
|||
pstate->fancyp = 1;
|
||||
pstate->highlight_objects = a->highlight_objects;
|
||||
|
||||
/* First find out if it's reasonable to do indentation. */
|
||||
indent_p = 0;
|
||||
|
||||
/* Determine size of frame number field. */
|
||||
j = end;
|
||||
for (i = 0; j > 0; ++i) j /= 10;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue