]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid a gcc warning on Linux/PowerPC.
authorBruno Haible <bruno@clisp.org>
Mon, 18 Jul 2005 11:39:57 +0000 (11:39 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:39 +0000 (12:12 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/po-lex.c

index 6627c3b2e6b2fdad98583df65c0e6c7bf25844fa..f9ea1165cc58e41ea841847d1ab255a3984c7b55 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-17  Bruno Haible  <bruno@clisp.org>
+
+       * po-lex.c (mb_width): Remove gcc warnings on platform with unsigned
+       'char' type (e.g. Linux/PowerPC).
+       Reported by Jeff Rizzo <riz@netbsd.org>.
+
 2005-07-05  Bruno Haible  <bruno@clisp.org>
 
        * Makefile.am (msgmerge_SOURCES, xgettext_SOURCES, msgattrib_SOURCES,
index a9ec3c083ec090a3dfa031659c067b66d650f51a..6a4fee8b8819f1628c98e74bfb34c769871f6473 100644 (file)
@@ -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);