From 812dd68035a7d8b1bc9623e643b39c9a1778b7d8 Mon Sep 17 00:00:00 2001 From: Atneya Nair Date: Tue, 6 Aug 2019 17:15:20 -0700 Subject: Commenting out parameters to use Wall compiler flag --- include/oboe/AudioStream.h | 24 ++++++++++++------------ include/oboe/AudioStreamCallback.h | 4 ++-- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'include') diff --git a/include/oboe/AudioStream.h b/include/oboe/AudioStream.h index 07f7d3a1..39ade0f4 100644 --- a/include/oboe/AudioStream.h +++ b/include/oboe/AudioStream.h @@ -172,7 +172,7 @@ public: * @return the resulting buffer size in frames (obtained using value()) or an error (obtained * using error()) */ - virtual ResultWithValue setBufferSizeInFrames(int32_t requestedFrames) { + virtual ResultWithValue setBufferSizeInFrames(int32_t /* requestedFrames */) { return Result::ErrorUnimplemented; } @@ -281,9 +281,9 @@ public: * @param framePosition the frame number to query * @param timeNanoseconds an output parameter which will contain the presentation timestamp */ - virtual Result getTimestamp(clockid_t clockId, - int64_t *framePosition, - int64_t *timeNanoseconds) { + virtual Result getTimestamp(clockid_t /* clockId */, + int64_t* /* framePosition */, + int64_t* /* timeNanoseconds */) { return Result::ErrorUnimplemented; } @@ -302,7 +302,7 @@ public: * @return a FrameTimestamp containing the position and time at which a particular audio frame * entered or left the audio processing pipeline, or an error if the operation failed. */ - virtual ResultWithValue getTimestamp(clockid_t clockId){ + virtual ResultWithValue getTimestamp(clockid_t /* clockId */){ return Result::ErrorUnimplemented; } @@ -319,9 +319,9 @@ public: * @return a ResultWithValue which has a result of Result::OK and a value containing the number * of frames actually written, or result of Result::Error*. */ - virtual ResultWithValue write(const void *buffer, - int32_t numFrames, - int64_t timeoutNanoseconds) { + virtual ResultWithValue write(const void* /* buffer */, + int32_t /* numFrames */, + int64_t /* timeoutNanoseconds */ ) { return ResultWithValue(Result::ErrorUnimplemented); } @@ -337,9 +337,9 @@ public: * @return a ResultWithValue which has a result of Result::OK and a value containing the number * of frames actually read, or result of Result::Error*. */ - virtual ResultWithValue read(void *buffer, - int32_t numFrames, - int64_t timeoutNanoseconds) { + virtual ResultWithValue read(void* /* buffer */, + int32_t /* numFrames */, + int64_t /* timeoutNanoseconds */) { return ResultWithValue(Result::ErrorUnimplemented); } @@ -408,7 +408,7 @@ protected: * @param numFrames * @return result */ - virtual DataCallbackResult onDefaultCallback(void *audioData, int numFrames) { + virtual DataCallbackResult onDefaultCallback(void* /* audioData */, int /* numFrames */) { return DataCallbackResult::Stop; } diff --git a/include/oboe/AudioStreamCallback.h b/include/oboe/AudioStreamCallback.h index b4057d0b..f427693e 100644 --- a/include/oboe/AudioStreamCallback.h +++ b/include/oboe/AudioStreamCallback.h @@ -100,7 +100,7 @@ public: * @param oboeStream pointer to the associated stream * @param error */ - virtual void onErrorBeforeClose(AudioStream *oboeStream, Result error) {} + virtual void onErrorBeforeClose(AudioStream* /* oboeStream */, Result /* error */) {} /** * This will be called when an error occurs on a stream or when the stream is disconnected. @@ -114,7 +114,7 @@ public: * @param oboeStream pointer to the associated stream * @param error */ - virtual void onErrorAfterClose(AudioStream *oboeStream, Result error) {} + virtual void onErrorAfterClose(AudioStream* /* oboeStream */, Result /* error */) {} }; -- cgit v1.2.3