Skip to content

Commit 1ca9394

Browse files
committed
cmake compile warnings
1 parent d7f24d1 commit 1ca9394

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/AudioBasic/Net.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#pragma once
22

3+
#ifndef htons
34
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
45
# define htonl(x) (((x) << 24 & 0xFF000000UL) | ((x) << 8 & 0x00FF0000UL) | ((x) >> 8 & 0x0000FF00UL) | ((x) >> 24 & 0x000000FFUL))
56
# define htons(x) (((uint16_t)(x)&0xff00) >> 8) | (((uint16_t)(x)&0X00FF) << 8)
@@ -13,3 +14,4 @@
1314
#else
1415
#error Could not determine byte order
1516
#endif
17+
#endif

src/AudioCodecs/ContainerOgg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class OggContainerOutput : public AudioOutput {
213213
/// Defines the output Stream
214214
void setOutput(Print &print) { p_out = &print; }
215215

216-
virtual bool begin(AudioInfo from) {
216+
virtual bool begin(AudioInfo from) override {
217217
setAudioInfo(from);
218218
return begin();
219219
}

0 commit comments

Comments
 (0)