Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 904191ec authored by Yi Kong's avatar Yi Kong Committed by Automerger Merge Worker
Browse files

Merge "Re-enable unused-command-line-argument warning" am: a9e56f06 am: 0a7e9a52

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1799592

Change-Id: I02c790e9029c05c7dca762547f2f46910f77ebe8
parents d6954f0b 0a7e9a52
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -77,10 +77,6 @@ var (
		// TODO: can we remove this now?
		"-Wno-reserved-id-macro",

		// Workaround for ccache with clang.
		// See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html.
		"-Wno-unused-command-line-argument",

		// Force clang to always output color diagnostics. Ninja will strip the ANSI
		// color codes if it is not running in a terminal.
		"-fcolor-diagnostics",
@@ -329,6 +325,12 @@ func init() {
			// Default to zero initialization.
			flags = append(flags, "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang")
		}

		// Workaround for ccache with clang.
		// See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html.
		if ctx.Config().IsEnvTrue("USE_CCACHE") {
			flags = append(flags, "-Wno-unused-command-line-argument")
		}
		return strings.Join(flags, " ")
	})