commit | 996d547d9eeca3622752765f4b3acf7d4c7dfe0a | [log] [tgz] |
---|---|---|
author | Aditya Kumar <appujee@google.com> | Fri Jan 17 14:18:30 2025 -0800 |
committer | Aditya Kumar <appujee@google.com> | Mon Mar 10 13:29:26 2025 -0700 |
tree | 3a85fdb362694ff7edd40987f6d2a5c0b72e9aea | |
parent | 5bb5dce4e10f5824fc9847759c3056b37a90dc30 [diff] [blame] |
Add `-pedantic` as an illegal flag Ignore-AOSP-First: Make backporting easier. Bug: b/383382218 Change-Id: I3885de831e95aeeca2ca5c0f03434e26a05c6403
diff --git a/cc/config/global.go b/cc/config/global.go index 5011acd..e81ac0d 100644 --- a/cc/config/global.go +++ b/cc/config/global.go
@@ -373,6 +373,9 @@ // Flags that must not appear in any command line. IllegalFlags = []string{ "-w", + "-pedantic", + "-pedantic-errors", + "-Werror=pedantic", } CStdVersion = "gnu23"