Skip to content

Commit 292614c

Browse files
committed
compile warnings
1 parent b6c3025 commit 292614c

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/AudioTools/AudioCodecs/CodecWAV.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ class WAVHeader {
117117

118118
void clear() {
119119
data_pos = 0;
120-
memset(&headerInfo,0,sizeof(WAVAudioInfo));
120+
WAVAudioInfo empty;
121+
headerInfo = empty;
121122
buffer.setClearWithZero(true);
122123
buffer.reset();
123124
}

src/AudioTools/CoreAudio/AudioActions.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class AudioActions {
3636
};
3737

3838
struct Action {
39+
Action() = default;
40+
virtual ~Action() {}
3941
int16_t pin = -1;
4042
void (*actionOn)(bool pinStatus, int pin, void *ref) = nullptr;
4143
void (*actionOff)(bool pinStatus, int pin, void *ref) = nullptr;
@@ -123,7 +125,7 @@ class AudioActions {
123125
}
124126

125127
/// deletes all actions
126-
~AudioActions() {
128+
virtual ~AudioActions() {
127129
clear();
128130
}
129131

src/AudioTools/CoreAudio/AudioAnalog/AnalogDriverESP32V1.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ class AnalogDriverESP32V1 : public AnalogDriverBase {
629629
#ifdef ARDUINO
630630
// dummy detach: w/o this it's failing
631631
static bool adcDetachBus(void *bus) {
632-
LOGD("===> adcDetachBus: %d", bus);
632+
LOGD("===> adcDetachBus: %d", (int) bus);
633633
return true;
634634
}
635635
#endif

0 commit comments

Comments
 (0)