diff options
author | 2025-01-17 14:18:30 -0800 | |
---|---|---|
committer | 2025-03-10 13:29:26 -0700 | |
commit | 996d547d9eeca3622752765f4b3acf7d4c7dfe0a (patch) | |
tree | 3a85fdb362694ff7edd40987f6d2a5c0b72e9aea /cc | |
parent | 5bb5dce4e10f5824fc9847759c3056b37a90dc30 (diff) |
Add `-pedantic` as an illegal flag
Ignore-AOSP-First: Make backporting easier.
Bug: b/383382218
Change-Id: I3885de831e95aeeca2ca5c0f03434e26a05c6403
Diffstat (limited to 'cc')
-rw-r--r-- | cc/config/global.go | 3 |
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" |