Skip to content

Commit bc1ec9c

Browse files
authored
Fix compile warnings (#1890)
1 parent a5e618b commit bc1ec9c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/AudioTools/CoreAudio/AudioMetaData/MetaDataFilter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MetaDataFilter : public AudioOutput {
4242

4343
/// Writes the data to the decoder
4444
size_t write(const uint8_t *data, size_t len) override {
45-
LOGI("write: %u", len);
45+
LOGI("write: %u", (unsigned)len);
4646
size_t result = len;
4747
// prevent npe
4848
if ((p_out == nullptr && p_writer == nullptr) || (data == nullptr) ||
@@ -76,7 +76,7 @@ class MetaDataFilter : public AudioOutput {
7676
// write partial data
7777
size_t to_write = tmp.available();
7878
if (to_write > 0) {
79-
LOGI("output: %d", to_write);
79+
LOGI("output: %u", (unsigned)to_write);
8080
size_t written = 0;
8181
if (p_out) written = p_out->write(tmp.data(), to_write);
8282
if (p_writer) written = p_writer->write(tmp.data(), to_write);

src/AudioTools/CoreAudio/BaseStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class QueueStream : public BaseStream {
333333
size_t size = callback_buffer_ptr->size() * sizeof(T);
334334
// calculate limit
335335
active_limit = size * activeWhenPercentFilled / 100;
336-
LOGI("activate after: %d bytes", active_limit);
336+
LOGI("activate after: %u bytes",(unsigned)active_limit);
337337
return true;
338338
}
339339

0 commit comments

Comments
 (0)