diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2012-08-25 12:16:29 -0700 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2012-08-25 12:16:29 -0700 |
commit | 1279ed652f9f3408211c78b7bf8a0aef6b8488df (patch) | |
tree | c4f7fe0b6d9db83416b44b06823c491e272702f9 | |
parent | fa40ecdfb5cd068ba531b4439df5bbf660469d3a (diff) |
Remove dead code (size_t is always >= 0)
xwininfo.c:1886:15: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (inlen < 0) {
~~~~~ ^ ~
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
-rw-r--r-- | xwininfo.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -1883,10 +1883,6 @@ print_utf8 (const char *prefix, char *u8str, size_t length, const char *suffix) { size_t inlen = length; - if (inlen < 0) { - inlen = strlen (u8str); - } - if (is_valid_utf8 (u8str, inlen) != UTF8_VALID) { printf (" (invalid UTF8_STRING)"); return; |