diff options
author | dim <dim@FreeBSD.org> | 2015-12-31 22:45:00 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-12-31 22:45:00 +0000 |
commit | 5e96169da3835c4e7ba0d43cbe01f0d7b36f67b3 (patch) | |
tree | 129304197d06b6f58ec87386d702a309a79c10fa /contrib/llvm/tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp | |
parent | 986cd97fb8d8b0815cd92099d7c71d4c2936afa8 (diff) | |
download | FreeBSD-src-5e96169da3835c4e7ba0d43cbe01f0d7b36f67b3.zip FreeBSD-src-5e96169da3835c4e7ba0d43cbe01f0d7b36f67b3.tar.gz |
Fix a clang 3.8.0 warning in pflogd.c:
contrib/pf/pflogd/pflogd.c:769:8: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
if (!if_exists(interface) == -1) {
^ ~~
The if_exists() function does not return -1, and even if it did, it
would not be the correct way to check. Just ditch the == -1 instead.
Obtained from: OpenBSD's pflogd.c 1.49
MFC after: 3 days
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp')
0 files changed, 0 insertions, 0 deletions