From e7d02e01baf235296e09c59e320d58f13f024d93 Mon Sep 17 00:00:00 2001 From: Volkan Aslan <83580341+volkan-aslan@users.noreply.github.com> Date: Thu, 4 Jan 2024 11:28:38 +0100 Subject: [PATCH] Changes to have working build if build type is release (#27) --- Source/bluetooth/audio/AVDTPSocket.h | 4 ++-- Source/bluetooth/audio/SDPProfile.cpp | 2 +- Source/bluetooth/audio/codecs/SBC.cpp | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Source/bluetooth/audio/AVDTPSocket.h b/Source/bluetooth/audio/AVDTPSocket.h index 2e7ea37..ffee2b8 100644 --- a/Source/bluetooth/audio/AVDTPSocket.h +++ b/Source/bluetooth/audio/AVDTPSocket.h @@ -205,7 +205,7 @@ namespace AVDTP { idLabels[static_cast(_id)], _payload.Length(), _expectedPackets); #else - return (Core::Format("signal #%d type %d id %d", _label, _type, _id)); + return (Core::Format("signal #%d type %d id %d", _label, static_cast(_type), static_cast(_id))); #endif } @@ -505,7 +505,7 @@ namespace AVDTP { } protected: - virtual void OnSignal(const Signal& request, const ResponseHandler& handler VARIABLE_IS_NOT_USED) + virtual void OnSignal(const Signal& request VARIABLE_IS_NOT_USED, const ResponseHandler& handler VARIABLE_IS_NOT_USED) { TRACE_L1("AVDTP: Unhandled incoming signal %d", request.Id()); } diff --git a/Source/bluetooth/audio/SDPProfile.cpp b/Source/bluetooth/audio/SDPProfile.cpp index 0f97826..3ceaa03 100644 --- a/Source/bluetooth/audio/SDPProfile.cpp +++ b/Source/bluetooth/audio/SDPProfile.cpp @@ -262,7 +262,7 @@ namespace SDP { payload.Pop(outHandles, currentCount); - for (uint16_t i; i < outHandles.size(); i++) { + for (uint16_t i=0; i < outHandles.size(); i++) { TRACE_L5("ServiceRecordHandleList[%d]=0x%08x", i, outHandles[i]); } diff --git a/Source/bluetooth/audio/codecs/SBC.cpp b/Source/bluetooth/audio/codecs/SBC.cpp index 212b33a..8178afb 100644 --- a/Source/bluetooth/audio/codecs/SBC.cpp +++ b/Source/bluetooth/audio/codecs/SBC.cpp @@ -482,7 +482,9 @@ namespace A2DP { TRACE(Trace::Information, (_T("New bitpool value for SBC: %d"), _bitpool)); SBCConfigure(); - DumpBitrateConfiguration(); + #ifdef __DEBUG__ + DumpBitrateConfiguration(); + #endif } void SBC::SBCInitialize()