commit | 308bbe08b3c07a2113e7130ec75ebe5cd8fb93a0 | [log] [tgz] |
---|---|---|
author | Jooyung Han <jooyung@google.com> | Tue Apr 27 12:09:59 2021 +0900 |
committer | Jooyung Han <jooyung@google.com> | Tue Apr 27 22:39:44 2021 +0000 |
tree | 7ca1e11fbb49451aa10fc493aed74a81b50b2cb9 | |
parent | afc6aee1b9840df9a70d2c22b3062d77e665d289 [diff] |
checkapi: Allow default values for enum-type fields We recommend to set explicit default values for enum-type fields. But --checkapi complains about setting a default value even if the value is zero which is compatible with ""(empty) for enum types. For aidl_interfaces with versioned snapshots, we can't fix -Wenum-explicit-default because --checkapi sees it as an incompatible change to set the default value in the new while the old doesn't set the default. Bug: 179853398 Test: aidl_unittests Change-Id: I11b773f7459100b23944164192379369e305783c
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview