Merge "Default to pattern initialization for uninitialized variables (try 2)."
This commit is contained in:
commit
d35fcae5dc
|
@ -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 New Issue