system/bt
Revisión | 4b92ee87c05b19d36a96d60c79ed12272ce566af (tree) |
---|---|
Tiempo | 2020-04-14 23:54:21 |
Autor | Mauro Rossi <issor.oruam@gmai...> |
Commiter | Chih-Wei Huang |
hci_packetizer: fix unused building errors
Fixes the following building errors:
system/bt/vendor_libs/linux/interface/hci_packetizer.cc:28:14:
error: unused variable 'preamble_size_for_type' [-Werror,-Wunused-const-variable]
const size_t preamble_size_for_type[] = {
system/bt/vendor_libs/linux/interface/hci_packetizer.cc:35:8:
error: unused function 'HciGetPacketLengthForType' [-Werror,-Wunused-function]
size_t HciGetPacketLengthForType(HciPacketType type, const uint8_t* preamble) {
2 errors generated.
@@ -22,7 +22,7 @@ | ||
22 | 22 | |
23 | 23 | #include <dlfcn.h> |
24 | 24 | #include <fcntl.h> |
25 | - | |
25 | +#if 0 | |
26 | 26 | namespace { |
27 | 27 | |
28 | 28 | const size_t preamble_size_for_type[] = { |
@@ -39,7 +39,7 @@ size_t HciGetPacketLengthForType(HciPacketType type, const uint8_t* preamble) { | ||
39 | 39 | } |
40 | 40 | |
41 | 41 | } // namespace |
42 | - | |
42 | +#endif | |
43 | 43 | namespace android { |
44 | 44 | namespace hardware { |
45 | 45 | namespace bluetooth { |