Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1419b148 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Chih-hung Hsieh
Browse files

Use -Werror in frameworks/av/media/libaaudio

* Remove unused local variables, labels, functions, private fields.
* Fix warning of unused return result.
* Use template functions in .h file to avoid warning of unused static functions.

Bug: 66996870
Test: build with WITH_TIDY=1
Exempt-From-Owner-Approval: to fix broken build
Merged-In: I54962a7fd36a405e54366130b9c0a24e26fe8ebb
(cherry picked from commit 68326fe0)

Change-Id: If5804a74ca2c0560debd56407d8d1c1a25e11129
(cherry picked from commit 9bba7f17)
parent 4b187947
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -111,8 +111,6 @@ static aaudio_result_t testTimeStamps(aaudio_policy_t mmapPolicy,
    aaudio_result_t result = AAUDIO_OK;

    int32_t framesPerBurst = 0;
    float *buffer = nullptr;

    int32_t actualChannelCount = 0;
    int32_t actualSampleRate = 0;
    int32_t originalBufferSize = 0;
@@ -287,7 +285,7 @@ finish:

int main(int argc, char **argv) {
    (void) argc;
    (void *) argv;
    (void) argv;

    aaudio_result_t result = AAUDIO_OK;