Code clean for audioflinger
Cleaning compile warnings:
1. For "variable 'XX' set but not used":
Remove the variables which are obviously not used;
Add "[[maybe_unused]]" to variable declaration of the ones
which are potentially used.
2. For "unused parameter 'XX'":
Add "[[maybe_unused]]" to the unused function parameters.
Test: mmm frameworks/av/services/audioflinger, presubmit check.
Change-Id: I6bd6fa9a57de93f5387e1ad76342f0a0b0ac28ed
Signed-off-by: Jing Mike <jingyangliu@eswincomputing.com>
diff --git a/services/audioflinger/FastMixer.h b/services/audioflinger/FastMixer.h
index 97ab635..d71519f 100644
--- a/services/audioflinger/FastMixer.h
+++ b/services/audioflinger/FastMixer.h
@@ -107,7 +107,8 @@
std::atomic<float> mMasterBalance{};
std::atomic_int_fast64_t mBoottimeOffset;
- const audio_io_handle_t mThreadIoHandle; // parent thread id for debugging purposes
+ // parent thread id for debugging purposes
+ [[maybe_unused]] const audio_io_handle_t mThreadIoHandle;
#ifdef TEE_SINK
NBAIO_Tee mTee;
#endif