From da3d352ffdc491f1921d0aa269cbbba30808f8e4 Mon Sep 17 00:00:00 2001 From: Jayant Chowdhary Date: Fri, 18 May 2018 15:35:50 -0700 Subject: [PATCH] header-abi-diff: -allow-unreferenced-elf-symbol-changes will suppress warnings as well. Bug:79928919 Test: tests/test.py Change-Id: Icec65e5e18987fd60fb8e5532983947b335b6951 --- .../header-abi-diff/src/header_abi_diff.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vndk/tools/header-checker/header-abi-diff/src/header_abi_diff.cpp b/vndk/tools/header-checker/header-abi-diff/src/header_abi_diff.cpp index 91382e956..369b73a68 100644 --- a/vndk/tools/header-checker/header-abi-diff/src/header_abi_diff.cpp +++ b/vndk/tools/header-checker/header-abi-diff/src/header_abi_diff.cpp @@ -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: "