Skip to content

Commit

Permalink
Changes to have working build if build type is release (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
volkan-aslan authored Jan 4, 2024
1 parent a30014a commit e7d02e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/bluetooth/audio/AVDTPSocket.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ namespace AVDTP {
idLabels[static_cast<uint8_t>(_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<uint8_t>(_type), static_cast<uint8_t>(_id)));
#endif
}

Expand Down Expand Up @@ -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());
}
Expand Down
2 changes: 1 addition & 1 deletion Source/bluetooth/audio/SDPProfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

Expand Down
4 changes: 3 additions & 1 deletion Source/bluetooth/audio/codecs/SBC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e7d02e0

Please sign in to comment.