• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/bt


Commit MetaInfo

Revision936391199faf161d6479ab195edbaf6657de394b (tree)
Zeit2019-12-30 11:54:22
AutorMauro Rossi <issor.oruam@gmai...>
Commiterserver158

Log Message

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.

Ändern Zusammenfassung

Diff

--- a/vendor_libs/linux/interface/hci_packetizer.cc
+++ b/vendor_libs/linux/interface/hci_packetizer.cc
@@ -22,7 +22,7 @@
2222
2323 #include <dlfcn.h>
2424 #include <fcntl.h>
25-
25+#if 0
2626 namespace {
2727
2828 const size_t preamble_size_for_type[] = {
@@ -39,7 +39,7 @@ size_t HciGetPacketLengthForType(HciPacketType type, const uint8_t* preamble) {
3939 }
4040
4141 } // namespace
42-
42+#endif
4343 namespace android {
4444 namespace hardware {
4545 namespace bluetooth {