diff --git a/cc/tidy.go b/cc/tidy.go index ddb445a02..6bac84651 100644 --- a/cc/tidy.go +++ b/cc/tidy.go @@ -108,6 +108,12 @@ func (tidy *tidyFeature) flags(ctx ModuleContext, flags Flags) Flags { if len(tidy.Properties.Tidy_checks) > 0 { tidyChecks = tidyChecks + "," + strings.Join(esc(tidy.Properties.Tidy_checks), ",") } + if ctx.Windows() { + // https://b.corp.google.com/issues/120614316 + // mingw32 has cert-dcl16-c warning in NO_ERROR, + // which is used in many Android files. + tidyChecks = tidyChecks + ",-cert-dcl16-c" + } flags.TidyFlags = append(flags.TidyFlags, tidyChecks) return flags