diff options
author | Andy Wingo <wingo@pobox.com> | 2011-03-17 11:42:50 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-03-17 12:39:53 +0100 |
commit | 03976fee3b342f9da6fff41bc619c45a12372dfa (patch) | |
tree | 8735d72f60811f8ac4049b03a6ccaffaf2fd57ac /libguile/ports.c | |
parent | 148c3317691d5b7d2414179031f87905454cb11a (diff) | |
download | guile-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/ports.c')
-rw-r--r-- | libguile/ports.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libguile/ports.c b/libguile/ports.c index a48cc8607..8f52e66f1 100644 --- a/libguile/ports.c +++ b/libguile/ports.c @@ -522,12 +522,9 @@ static void finalize_port (GC_PTR, GC_PTR); static SCM_C_INLINE_KEYWORD void register_finalizer_for_port (SCM port) { - long port_type; GC_finalization_proc prev_finalizer; GC_PTR prev_finalization_data; - port_type = SCM_TC2PTOBNUM (SCM_CELL_TYPE (port)); - /* Register a finalizer for PORT so that its iconv CDs get freed and optionally its type's `free' function gets called. */ GC_REGISTER_FINALIZER_NO_ORDER (SCM2PTR (port), finalize_port, 0, |