diff options
| author | 2022-12-01 15:09:11 -0800 | |
|---|---|---|
| committer | 2022-12-01 15:09:11 -0800 | |
| commit | b5d7f94ebeddaecc0078eafbb11983a50a66713e (patch) | |
| tree | e5fa112fc7a31810eae297e0fc4e828c18c97017 /libs/jpegrecoverymap/jpegencoderhelper.cpp | |
| parent | 30a1ac67bddcde0b5581fa272e60400f58f583dd (diff) | |
Fix sched_param initialization for musl libc
Musl libc defines struct sched_param with multiple fields, use an
empty initializer to initialize them all to default values instead
of trying to zero initialize a single field. Fixes a build error
with USE_HOST_MUSL=true:
frameworks/native/services/sensorservice/aidl/SensorManager.cpp:204:38: error: missing field '__reserved1' initializer [-Werror,-Wmissing-field-initializers]
struct sched_param p = {0};
Test: m USE_HOST_MUSL=true libsensorserviceaidl
Change-Id: Ie36c59f802f393b1e71f058d7d2a00c64eb6b09e
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions