svn commit: r245091 - head/bin/ls
Andrew Turner
andrew at FreeBSD.org
Sun Jan 6 02:50:39 UTC 2013
Author: andrew
Date: Sun Jan 6 02:50:38 2013
New Revision: 245091
URL: http://svnweb.freebsd.org/changeset/base/245091
Log:
When WCHAR_MIN == 0 the check if a wchar_t value will always be true. In
this case skip the test as gcc complains it is always true.
Modified:
head/bin/ls/util.c
Modified: head/bin/ls/util.c
==============================================================================
--- head/bin/ls/util.c Sun Jan 6 01:46:01 2013 (r245090)
+++ head/bin/ls/util.c Sun Jan 6 02:50:38 2013 (r245091)
@@ -184,7 +184,10 @@ prn_octal(const char *s)
for (i = 0; i < (int)clen; i++)
putchar((unsigned char)s[i]);
len += wcwidth(wc);
- } else if (goodchar && f_octal_escape && wc >= 0 &&
+ } else if (goodchar && f_octal_escape &&
+#if WCHAR_MIN < 0
+ wc >= 0 &&
+#endif
wc <= (wchar_t)UCHAR_MAX &&
(p = strchr(esc, (char)wc)) != NULL) {
putchar('\\');
More information about the svn-src-all
mailing list