Skip to content

Commit e7d02e0

Browse files
authored
Changes to have working build if build type is release (#27)
1 parent a30014a commit e7d02e0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Source/bluetooth/audio/AVDTPSocket.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ namespace AVDTP {
205205
idLabels[static_cast<uint8_t>(_id)],
206206
_payload.Length(), _expectedPackets);
207207
#else
208-
return (Core::Format("signal #%d type %d id %d", _label, _type, _id));
208+
return (Core::Format("signal #%d type %d id %d", _label, static_cast<uint8_t>(_type), static_cast<uint8_t>(_id)));
209209
#endif
210210
}
211211

@@ -505,7 +505,7 @@ namespace AVDTP {
505505
}
506506

507507
protected:
508-
virtual void OnSignal(const Signal& request, const ResponseHandler& handler VARIABLE_IS_NOT_USED)
508+
virtual void OnSignal(const Signal& request VARIABLE_IS_NOT_USED, const ResponseHandler& handler VARIABLE_IS_NOT_USED)
509509
{
510510
TRACE_L1("AVDTP: Unhandled incoming signal %d", request.Id());
511511
}

Source/bluetooth/audio/SDPProfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ namespace SDP {
262262

263263
payload.Pop(outHandles, currentCount);
264264

265-
for (uint16_t i; i < outHandles.size(); i++) {
265+
for (uint16_t i=0; i < outHandles.size(); i++) {
266266
TRACE_L5("ServiceRecordHandleList[%d]=0x%08x", i, outHandles[i]);
267267
}
268268

Source/bluetooth/audio/codecs/SBC.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,9 @@ namespace A2DP {
482482
TRACE(Trace::Information, (_T("New bitpool value for SBC: %d"), _bitpool));
483483

484484
SBCConfigure();
485-
DumpBitrateConfiguration();
485+
#ifdef __DEBUG__
486+
DumpBitrateConfiguration();
487+
#endif
486488
}
487489

488490
void SBC::SBCInitialize()

0 commit comments

Comments
 (0)