Skip to content

Commit 7ee1855

Browse files
committed
add missing override
1 parent cd44f26 commit 7ee1855

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ else()
1717
project(arduino-audio-tools)
1818

1919
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
20-
# set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0")
2120
set(FETCHCONTENT_UPDATES_DISCONNECTED ON)
22-
add_compile_options(-Wno-deprecated-declarations)
2321

2422
include(FetchContent)
2523

@@ -41,14 +39,14 @@ else()
4139
)
4240

4341
if (ADD_PORTAUDIO)
44-
add_compile_options(-DIS_DESKTOP)
4542
# Add Portaduio for desktop build
4643
FetchContent_Declare(portaudio GIT_REPOSITORY "https://github.com/PortAudio/portaudio.git" GIT_TAG v19.7.0 )
4744
FetchContent_GetProperties(portaudio)
4845
if(NOT portaudio_POPULATED)
4946
FetchContent_Populate(portaudio)
5047
add_subdirectory(${portaudio_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/portaudio)
5148
endif()
49+
5250
endif()
5351

5452

src/AudioTools/AudioLibs/Desktop/NoArduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Stream : public Print {
148148
#ifndef DOXYGEN
149149
virtual int read() { return -1; }
150150
virtual int peek() { return -1; }
151-
virtual void setTimeout(size_t t) {}
151+
virtual void setTimeout(size_t timeoutMs) {}
152152
size_t readBytesUntil(char terminator, char *buffer, size_t length) {
153153
for (int j=0;j<length;j++){
154154
int val = read();

src/AudioTools/CoreAudio/AudioHttp/HttpRequest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ class HttpRequest : public BaseStream {
335335
}
336336

337337
/// Defines the client timeout in ms
338-
void setTimeout(size_t timeoutMs) { clientTimeout = timeoutMs; }
338+
void setTimeout(size_t timeoutMs) override { clientTimeout = timeoutMs; }
339339

340340
/// we are sending the data chunked
341341
bool isChunked() { return request_header.isChunked(); }

0 commit comments

Comments
 (0)