Merge "Default to pattern initialization for uninitialized variables (try 2)." am: d35fcae5dc am: b286d3e1d9 am: 447c894c0d

Change-Id: I698c550344cafec72d7a439a203b2bc6e8066672
This commit is contained in:
Automerger Merge Worker 2020-01-31 22:25:23 +00:00
commit ff06acfc01

View file

@ -168,6 +168,9 @@ func init() {
flags = append(flags, "-ftrivial-auto-var-init=pattern") flags = append(flags, "-ftrivial-auto-var-init=pattern")
} else if ctx.Config().IsEnvTrue("AUTO_UNINITIALIZE") { } else if ctx.Config().IsEnvTrue("AUTO_UNINITIALIZE") {
flags = append(flags, "-ftrivial-auto-var-init=uninitialized") flags = append(flags, "-ftrivial-auto-var-init=uninitialized")
} else {
// Default to pattern initialization.
flags = append(flags, "-ftrivial-auto-var-init=pattern")
} }
return strings.Join(flags, " ") return strings.Join(flags, " ")