header-abi-diff: -allow-unreferenced-elf-symbol-changes will suppress warnings as well.
Bug:79928919
Test: tests/test.py
Merged-In: Icec65e5e18987fd60fb8e5532983947b335b6951
Change-Id: Icec65e5e18987fd60fb8e5532983947b335b6951
(cherry picked from commit da3d352ffd)
This commit is contained in:
@@ -170,7 +170,13 @@ int main(int argc, const char **argv) {
|
|||||||
}
|
}
|
||||||
bool suppress_extending_warnings =
|
bool suppress_extending_warnings =
|
||||||
allow_extensions && (status & abi_util::CompatibilityStatusIR::Extension);
|
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"
|
llvm::errs() << "******************************************************\n"
|
||||||
<< error_or_warning_str
|
<< error_or_warning_str
|
||||||
<< "VNDK library: "
|
<< "VNDK library: "
|
||||||
|
|||||||
Reference in New Issue
Block a user