mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 13:00:06 +00:00
* iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
to keep gcc quiet. * iconvdata/iso-2022-cn.c (BODY): Likewise.
This commit is contained in:
parent
a45d733cce
commit
278bfa00b6
@ -1,5 +1,9 @@
|
|||||||
2007-08-25 Ulrich Drepper <drepper@redhat.com>
|
2007-08-25 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* iconvdata/iso-2022-kr.c (BODY): Fake initialization of array buf
|
||||||
|
to keep gcc quiet.
|
||||||
|
* iconvdata/iso-2022-cn.c (BODY): Likewise.
|
||||||
|
|
||||||
* locale/programs/ld-collate.c (collate_output): Avoid warning if
|
* locale/programs/ld-collate.c (collate_output): Avoid warning if
|
||||||
NDEBUG is defined.
|
NDEBUG is defined.
|
||||||
|
|
||||||
|
@ -264,6 +264,9 @@ enum
|
|||||||
else \
|
else \
|
||||||
{ \
|
{ \
|
||||||
unsigned char buf[2]; \
|
unsigned char buf[2]; \
|
||||||
|
/* Fake initialization to keep gcc quiet. */ \
|
||||||
|
asm ("" : "=m" (buf)); \
|
||||||
|
\
|
||||||
int used; \
|
int used; \
|
||||||
size_t written = 0; \
|
size_t written = 0; \
|
||||||
\
|
\
|
||||||
|
@ -200,9 +200,7 @@ enum
|
|||||||
#define LOOPFCT TO_LOOP
|
#define LOOPFCT TO_LOOP
|
||||||
#define BODY \
|
#define BODY \
|
||||||
{ \
|
{ \
|
||||||
uint32_t ch; \
|
uint32_t ch = get32 (inptr); \
|
||||||
\
|
|
||||||
ch = get32 (inptr); \
|
|
||||||
\
|
\
|
||||||
/* First see whether we can write the character using the currently \
|
/* First see whether we can write the character using the currently \
|
||||||
selected character set. */ \
|
selected character set. */ \
|
||||||
@ -224,10 +222,10 @@ enum
|
|||||||
else \
|
else \
|
||||||
{ \
|
{ \
|
||||||
unsigned char buf[2]; \
|
unsigned char buf[2]; \
|
||||||
size_t written; \
|
/* Fake initialization to keep gcc quiet. */ \
|
||||||
\
|
asm ("" : "=m" (buf)); \
|
||||||
written = ucs4_to_ksc5601 (ch, buf, 2); \
|
|
||||||
\
|
\
|
||||||
|
size_t written = ucs4_to_ksc5601 (ch, buf, 2); \
|
||||||
if (__builtin_expect (written, 0) == __UNKNOWN_10646_CHAR) \
|
if (__builtin_expect (written, 0) == __UNKNOWN_10646_CHAR) \
|
||||||
{ \
|
{ \
|
||||||
UNICODE_TAG_HANDLER (ch, 4); \
|
UNICODE_TAG_HANDLER (ch, 4); \
|
||||||
|
Loading…
Reference in New Issue
Block a user