summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorriz <riz@NetBSD.org>2005-05-01 16:21:07 +0000
committerriz <riz@NetBSD.org>2005-05-01 16:21:07 +0000
commite09f32d58e02de8427e5456973af83aba09bc688 (patch)
treed570213c6f3f56c48db8edec99be136a5c849456 /gnu
parente7346e3b2b0198fa8e95d38bdcafe8643e6cdb0a (diff)
Only test if a char is >= 0x00 when CHAR_MIN is < 0, so gcc doesn't
warn about the comparison always being true. Fixes build for macppc target. Problem noted by me, analysis and fix from Thomas Klausner. Approved by wiz.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/dist/gettext/gettext-tools/src/po-lex.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/dist/gettext/gettext-tools/src/po-lex.c b/gnu/dist/gettext/gettext-tools/src/po-lex.c
index 1da40f9085f..ef848f40da8 100644
--- a/gnu/dist/gettext/gettext-tools/src/po-lex.c
+++ b/gnu/dist/gettext/gettext-tools/src/po-lex.c
@@ -310,7 +310,11 @@ mb_width (const mbchar_t mbc)
{
if (mbc->bytes == 1)
{
- if (mbc->buf[0] >= 0x00 && mbc->buf[0] <= 0x1F)
+ if (
+#if CHAR_MIN < 0x00 /* to avoid gcc warning */
+ mbc->buf[0] >= 0x00 &&
+#endif
+ mbc->buf[0] <= 0x1F)
{
if (mbc->buf[0] == 0x09)
return 8 - (gram_pos_column & 7);