From 13b063730a88195e862f615483dea3d573b46423 Mon Sep 17 00:00:00 2001 From: Prashanth Swaminathan Date: Mon, 22 Jan 2024 19:41:52 -0800 Subject: [PATCH] Reduce warning spam from "unused-" flags in //external, //vendor, //hardware Some clang unused-* warnings are not covered by "-Wno-unused". Add them explicitly to avoid noise from these warnings, given that they don't generally get fixed. Test: Local clean builds. Change-Id: I13f5089fd68f1a67a11be14fa41807688d803ba3 --- cc/config/global.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cc/config/global.go b/cc/config/global.go index 5fed7f189..338c0e33d 100644 --- a/cc/config/global.go +++ b/cc/config/global.go @@ -351,7 +351,8 @@ var ( // enabling since it's a cosmetic issue. "-Wno-bitwise-instead-of-logical", - "-Wno-unused-but-set-variable", + "-Wno-unused", + "-Wno-unused-parameter", "-Wno-unused-but-set-parameter", "-Wno-unqualified-std-cast-call", "-Wno-array-parameter",