Make "if" warnings...
dino213dz opened this issue · 0 comments
∟► $ make
[ 3%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop_static.dir/src/btsnoopfileinfo.cpp.o
[ 7%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop_static.dir/src/btsnooppacket.cpp.o
/sources/bluetooth-hci-decoder/btsnoop-decoder/src/btsnooppacket.cpp: In constructor ‘BtSnoopPacket::BtSnoopPacket(char*)’:
/sources/bluetooth-hci-decoder/btsnoop-decoder/src/btsnooppacket.cpp:90:33: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
if ((packet_flags & 0x00000002)==1){
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
[ 11%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop_static.dir/src/btsnoopparser.cpp.o
[ 15%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop_static.dir/src/btsnooptask.cpp.o
[ 19%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop_static.dir/src/jsoncpp.cpp.o
[ 23%] Linking CXX static library lib/libbtsnoop_static.a
[ 23%] Built target btsnoop_static
Scanning dependencies of target bthci_static
[ 26%] Building CXX object CMakeFiles/bthci_static.dir/src/command_complete.cpp.o
[ 30%] Building CXX object CMakeFiles/bthci_static.dir/src/hcidecoder.cpp.o
[ 34%] Building CXX object CMakeFiles/bthci_static.dir/src/jsoncpp.cpp.o
[ 38%] Linking CXX static library lib/libbthci_static.a
[ 38%] Built target bthci_static
Scanning dependencies of target bthci-test
[ 42%] Building CXX object CMakeFiles/bthci-test.dir/test/src/btsnoopmonitor.cpp.o
[ 46%] Building CXX object CMakeFiles/bthci-test.dir/test/src/main.cpp.o
[ 50%] Linking CXX executable bin/bthci-test
[ 50%] Built target bthci-test
Scanning dependencies of target bthci
[ 53%] Building CXX object CMakeFiles/bthci.dir/src/command_complete.cpp.o
[ 57%] Building CXX object CMakeFiles/bthci.dir/src/hcidecoder.cpp.o
[ 61%] Building CXX object CMakeFiles/bthci.dir/src/jsoncpp.cpp.o
[ 65%] Linking CXX shared library lib/libbthci.so
[ 65%] Built target bthci
Scanning dependencies of target btsnoop
[ 69%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop.dir/src/btsnoopfileinfo.cpp.o
[ 73%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop.dir/src/btsnooppacket.cpp.o
/sources/bluetooth-hci-decoder/btsnoop-decoder/src/btsnooppacket.cpp: In constructor ‘BtSnoopPacket::BtSnoopPacket(char*)’:
/sources/bluetooth-hci-decoder/btsnoop-decoder/src/btsnooppacket.cpp:90:33: warning: bitwise comparison always evaluates to false [-Wtautological-compare]
if ((packet_flags & 0x00000002)==1){
~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
[ 76%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop.dir/src/btsnoopparser.cpp.o
[ 80%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop.dir/src/btsnooptask.cpp.o
[ 84%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop.dir/src/jsoncpp.cpp.o
[ 88%] Linking CXX shared library lib/libbtsnoop.so
[ 88%] Built target btsnoop
Scanning dependencies of target btsnoop-test
[ 92%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop-test.dir/test/src/btsnoopmonitor.cpp.o
[ 96%] Building CXX object btsnoop-decoder/CMakeFiles/btsnoop-test.dir/test/src/main.cpp.o
[100%] Linking CXX executable bin/btsnoop-test
[100%] Built target btsnoop-test