Rename modulesAddedWall to modulesWarningsAllowed
MODULES_ADDED_WALL is deceiving and it actually meant which modules are allowed to have warnings (do not automatically append -Werror flag). Test: presubmit Bug: 233183337 Change-Id: Ibd21e269eba04d01f13026d70a9e34ccb1cf26d7
This commit is contained in:
@@ -589,7 +589,7 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
|
||||
addToModuleList(ctx, modulesUsingWnoErrorKey, module)
|
||||
} else if !inList("-Werror", flags.Local.CFlags) && !inList("-Werror", flags.Local.CppFlags) {
|
||||
if warningsAreAllowed(ctx.ModuleDir()) {
|
||||
addToModuleList(ctx, modulesAddedWallKey, module)
|
||||
addToModuleList(ctx, modulesWarningsAllowedKey, module)
|
||||
} else {
|
||||
flags.Local.CFlags = append([]string{"-Werror"}, flags.Local.CFlags...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user