Merge "header-abi-diff: -allow-unreferenced-elf-symbol-changes will suppress warnings as well." am: 6fb89e3f30

am: dc78c44049

Change-Id: Ibaea3cce13401b600b6445f59ec9149ed042e138
This commit is contained in:
Jayant Chowdhary
2018-05-21 11:10:35 -07:00
committed by android-build-merger

View File

@@ -170,7 +170,13 @@ int main(int argc, const char **argv) {
}
bool suppress_extending_warnings =
allow_extensions && (status & abi_util::CompatibilityStatusIR::Extension);
if (!suppress_local_warnings && !suppress_extending_warnings && status) {
bool suppress_elf_warnings =
allow_unreferenced_elf_symbol_changes &&
(status & abi_util::CompatibilityStatusIR::ElfIncompatible);
if (!suppress_local_warnings && !suppress_extending_warnings &&
!suppress_elf_warnings && status) {
llvm::errs() << "******************************************************\n"
<< error_or_warning_str
<< "VNDK library: "