Merge "Default to pattern initialization for uninitialized variables (try 2)." am: d35fcae5dc
am: b286d3e1d9
am: 447c894c0d
Change-Id: I698c550344cafec72d7a439a203b2bc6e8066672
This commit is contained in:
commit
ff06acfc01
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