header-checker: Suppress extension warning
This commit suppresses extension warning if --allow-extensions is specified. Test: Run header-abi-diff with --allow-extensions Change-Id: I76a868aea239e5ce6f8213c12282c946d28f2ab5
This commit is contained in:
@@ -168,7 +168,9 @@ int main(int argc, const char **argv) {
|
||||
unreferenced_change_str += " This MIGHT be an ABI breaking change due to";
|
||||
unreferenced_change_str += " internal typecasts.";
|
||||
}
|
||||
if (!suppress_local_warnings && status) {
|
||||
bool suppress_extending_warnings =
|
||||
allow_extensions && (status & abi_util::CompatibilityStatusIR::Extension);
|
||||
if (!suppress_local_warnings && !suppress_extending_warnings && status) {
|
||||
llvm::errs() << "******************************************************\n"
|
||||
<< error_or_warning_str
|
||||
<< "VNDK library: "
|
||||
|
||||
Reference in New Issue
Block a user