diff --git a/cc/compiler.go b/cc/compiler.go index d510aa381..40dbea420 100644 --- a/cc/compiler.go +++ b/cc/compiler.go @@ -488,7 +488,6 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps addToModuleList(ctx, modulesAddedWall, module) flags.CFlags = append([]string{"-Wall"}, flags.CFlags...) } else { - addToModuleList(ctx, modulesAddedWerror, module) flags.CFlags = append([]string{"-Wall", "-Werror"}, flags.CFlags...) } } diff --git a/cc/makevars.go b/cc/makevars.go index 2d71db69b..0d2569adb 100644 --- a/cc/makevars.go +++ b/cc/makevars.go @@ -26,7 +26,6 @@ import ( const ( modulesAddedWall = "ModulesAddedWall" - modulesAddedWerror = "ModulesAddedWerror" modulesUsingWnoError = "ModulesUsingWnoError" ) @@ -102,7 +101,6 @@ func makeVarsProvider(ctx android.MakeVarsContext) { ctx.Strict("ANDROID_WARNING_ALLOWED_PROJECTS", makeStringOfWarningAllowedProjects()) ctx.Strict("SOONG_MODULES_ADDED_WALL", makeStringOfKeys(ctx, modulesAddedWall)) - ctx.Strict("SOONG_MODULES_ADDED_WERROR", makeStringOfKeys(ctx, modulesAddedWerror)) ctx.Strict("SOONG_MODULES_USING_WNO_ERROR", makeStringOfKeys(ctx, modulesUsingWnoError)) ctx.Strict("ADDRESS_SANITIZER_CONFIG_EXTRA_CFLAGS", strings.Join(asanCflags, " "))