diff options
author | dim <dim@FreeBSD.org> | 2015-02-05 22:28:00 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-02-05 22:28:00 +0000 |
commit | 49ba8ceb19505a0e0d49b2b436526bf135193ef9 (patch) | |
tree | 1f079505900a745e6810e186e24fae7628e60b0a /games | |
parent | d99174b27ce68f35921d0a81c2d1677985bcc8bb (diff) | |
download | FreeBSD-src-49ba8ceb19505a0e0d49b2b436526bf135193ef9.zip FreeBSD-src-49ba8ceb19505a0e0d49b2b436526bf135193ef9.tar.gz |
Fix two clang 3.6.0 warnings in usr.sbin/syslogd:
usr.sbin/syslogd/syslogd.c:1023:10: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
f->f_prevline && !strcmp(msg, f->f_prevline) &&
~~~^~~~~~~~~~
usr.sbin/syslogd/syslogd.c:1178:16: error: address of array 'f->f_prevline' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
} else if (f->f_prevline) {
~~ ~~~^~~~~~~~~~
In both cases, the f_prevline field of struct filed is a char array, so
it can never be null. Remove the checks.
Reviewed by: jilles
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D1716
Diffstat (limited to 'games')
0 files changed, 0 insertions, 0 deletions