aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2007-08-27 20:40:42 +0000
committerJakub Jelinek <jakub@redhat.com>2007-08-27 20:40:42 +0000
commit8d599f5ab190dfb8a394104c4dc0d39c90f19093 (patch)
treec46dd272dde92188874882c675c01b017958fbbb /iconvdata
parentworkaround for ia64 /emul/ia32-linux crap (diff)
downloadglibc-8d599f5ab190dfb8a394104c4dc0d39c90f19093.tar.gz
glibc-8d599f5ab190dfb8a394104c4dc0d39c90f19093.tar.bz2
glibc-8d599f5ab190dfb8a394104c4dc0d39c90f19093.zip
Updated to fedora-glibc-20070827T2032
Diffstat (limited to 'iconvdata')
-rw-r--r--iconvdata/iso-2022-cn.c3
-rw-r--r--iconvdata/iso-2022-kr.c10
2 files changed, 7 insertions, 6 deletions
diff --git a/iconvdata/iso-2022-cn.c b/iconvdata/iso-2022-cn.c
index 4825d72f0d..1613cf2329 100644
--- a/iconvdata/iso-2022-cn.c
+++ b/iconvdata/iso-2022-cn.c
@@ -264,6 +264,9 @@ enum
else \
{ \
unsigned char buf[2]; \
+ /* Fake initialization to keep gcc quiet. */ \
+ asm ("" : "=m" (buf)); \
+ \
int used; \
size_t written = 0; \
\
diff --git a/iconvdata/iso-2022-kr.c b/iconvdata/iso-2022-kr.c
index 1a16d213a7..6439b0a469 100644
--- a/iconvdata/iso-2022-kr.c
+++ b/iconvdata/iso-2022-kr.c
@@ -200,9 +200,7 @@ enum
#define LOOPFCT TO_LOOP
#define BODY \
{ \
- uint32_t ch; \
- \
- ch = get32 (inptr); \
+ uint32_t ch = get32 (inptr); \
\
/* First see whether we can write the character using the currently \
selected character set. */ \
@@ -224,10 +222,10 @@ enum
else \
{ \
unsigned char buf[2]; \
- size_t written; \
- \
- written = ucs4_to_ksc5601 (ch, buf, 2); \
+ /* Fake initialization to keep gcc quiet. */ \
+ asm ("" : "=m" (buf)); \
\
+ size_t written = ucs4_to_ksc5601 (ch, buf, 2); \
if (__builtin_expect (written, 0) == __UNKNOWN_10646_CHAR) \
{ \
UNICODE_TAG_HANDLER (ch, 4); \