summaryrefslogtreecommitdiff
path: root/cc
diff options
context:
space:
mode:
author Aditya Kumar <appujee@google.com> 2025-03-10 22:57:49 -0700
committer Android (Google) Code Review <android-gerrit@google.com> 2025-03-10 22:57:49 -0700
commit384961f1234677087a306ce18ab67e5b4316c6e5 (patch)
treeb3ffaaba163f68103d421ed6fdfe0f492d743c06 /cc
parentc1d09635ead9f72c9d993852f04a32fa2f8be8f8 (diff)
parent996d547d9eeca3622752765f4b3acf7d4c7dfe0a (diff)
Merge "Add `-pedantic` as an illegal flag" into main
Diffstat (limited to 'cc')
-rw-r--r--cc/config/global.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cc/config/global.go b/cc/config/global.go
index 5011acd50..e81ac0d47 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -373,6 +373,9 @@ var (
// Flags that must not appear in any command line.
IllegalFlags = []string{
"-w",
+ "-pedantic",
+ "-pedantic-errors",
+ "-Werror=pedantic",
}
CStdVersion = "gnu23"