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/posix.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/posix.c')
-rw-r--r-- | libguile/posix.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libguile/posix.c b/libguile/posix.c index 97e30df2b..a5c72624c 100644 --- a/libguile/posix.c +++ b/libguile/posix.c @@ -1713,12 +1713,10 @@ SCM_DEFINE (scm_nice, "nice", 1, 0, 0, "The return value is unspecified.") #define FUNC_NAME s_scm_nice { - int nice_value; - /* nice() returns "prio-NZERO" on success or -1 on error, but -1 can arise from "prio-NZERO", so an error must be detected from errno changed */ errno = 0; - nice_value = nice (scm_to_int (incr)); + nice (scm_to_int (incr)); if (errno != 0) SCM_SYSERROR; |