summaryrefslogtreecommitdiff
path: root/libguile/i18n.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/i18n.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/i18n.c')
-rw-r--r--libguile/i18n.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/libguile/i18n.c b/libguile/i18n.c
index c51df4a2c..da3c220de 100644
--- a/libguile/i18n.c
+++ b/libguile/i18n.c
@@ -1113,23 +1113,19 @@ chr_to_case (SCM chr, scm_t_locale c_locale,
#define FUNC_NAME func_name
{
int ret;
- scm_t_wchar *buf;
+ scm_t_uint32 c;
scm_t_uint32 *convbuf;
size_t convlen;
- SCM str, convchar;
+ SCM convchar;
- str = scm_i_make_wide_string (1, &buf);
- buf[0] = SCM_CHAR (chr);
+ c = SCM_CHAR (chr);
if (c_locale != NULL)
RUN_IN_LOCALE_SECTION (c_locale, ret =
- u32_locale_tocase ((scm_t_uint32 *) buf, 1,
- &convbuf,
- &convlen, func));
+ u32_locale_tocase (&c, 1, &convbuf, &convlen, func));
else
ret =
- u32_locale_tocase ((scm_t_uint32 *) buf, 1, &convbuf,
- &convlen, func);
+ u32_locale_tocase (&c, 1, &convbuf, &convlen, func);
if (SCM_UNLIKELY (ret != 0))
{