From 84aa559c28c182fbcef49966918e53d34be88df1 Mon Sep 17 00:00:00 2001 From: andrew Date: Sun, 6 Jan 2013 02:50:38 +0000 Subject: 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. --- bin/ls/util.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/ls/util.c') diff --git a/bin/ls/util.c b/bin/ls/util.c index a50eca4..f8466cd 100644 --- a/bin/ls/util.c +++ b/bin/ls/util.c @@ -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('\\'); -- cgit v1.1