aboutsummaryrefslogtreecommitdiff
path: root/compiler_wrapper/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'compiler_wrapper/config.go')
-rw-r--r--compiler_wrapper/config.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/compiler_wrapper/config.go b/compiler_wrapper/config.go
index 5bfc8009..b445ce95 100644
--- a/compiler_wrapper/config.go
+++ b/compiler_wrapper/config.go
@@ -28,8 +28,6 @@ type config struct {
// Toolchain root path relative to the wrapper binary.
clangRootRelPath string
gccRootRelPath string
- // Directory to store errors that were prevented with -Wno-error.
- newWarningsDir string
// Version. Only exposed via -print-config.
version string
}
@@ -108,8 +106,6 @@ func crosCommonClangFlags() []string {
return []string{
"-Qunused-arguments",
"-Werror=poison-system-directories",
- "-Wno-compound-token-split-by-macro",
- "-Wno-deprecated-builtins",
"-Wno-deprecated-declarations",
"-Wno-enum-constexpr-conversion",
"-Wno-error=implicit-function-declaration",
@@ -122,6 +118,8 @@ func crosCommonClangFlags() []string {
"-fdebug-default-version=5",
"-Wno-int-conversion",
"-Wno-incompatible-function-pointer-types",
+ // TODO(b/316021385): Temporarily disables warnings for variable length arrays.
+ "-Wno-error=vla-cxx-extension",
"-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES",
// TODO(b/315504245): Temporarily prevents new mangling rules from taking effect.
"-fclang-abi-compat=17",
@@ -165,7 +163,6 @@ var crosHardenedConfig = config{
"-ftrivial-auto-var-init=zero",
),
clangPostFlags: crosCommonClangPostFlags(),
- newWarningsDir: "fatal_clang_warnings",
}
// Flags to be added to non-hardened toolchain.
@@ -185,7 +182,6 @@ var crosNonHardenedConfig = config{
"-Wno-section",
),
clangPostFlags: crosCommonClangPostFlags(),
- newWarningsDir: "fatal_clang_warnings",
}
// Flags to be added to host toolchain.
@@ -212,7 +208,6 @@ var crosHostConfig = config{
),
// Temporarily disable Wdeprecated-copy. b/191479033
clangPostFlags: crosCommonClangPostFlags(),
- newWarningsDir: "fatal_clang_warnings",
}
var androidConfig = config{
@@ -224,5 +219,4 @@ var androidConfig = config{
gccFlags: []string{},
clangFlags: []string{},
clangPostFlags: []string{},
- newWarningsDir: "",
}