Merge "Default to pattern initialization for uninitialized variables (try 2)." am: d35fcae5dc
am: b286d3e1d9
Change-Id: I5e5d36c90b468136f0b88a91aad4c00c7ecbe966
This commit is contained in:
commit
447c894c0d
1 changed files with 3 additions and 0 deletions
|
@ -168,6 +168,9 @@ func init() {
|
|||
flags = append(flags, "-ftrivial-auto-var-init=pattern")
|
||||
} else if ctx.Config().IsEnvTrue("AUTO_UNINITIALIZE") {
|
||||
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, " ")
|
||||
|
|
Loading…
Reference in a new issue