summaryrefslogtreecommitdiff
path: root/absl/copts/copts.py
diff options
context:
space:
mode:
authorGravatar Oleg Fatkhiev <41271510+ofats@users.noreply.github.com>2021-09-01 21:48:37 +0100
committerGravatar GitHub <noreply@github.com>2021-09-01 16:48:37 -0400
commit665ac5b425cea2462bf85dcbb56dd68ec19ad00f (patch)
tree3372579063dac99ff8b1d8ac0d1b886307d2988f /absl/copts/copts.py
parent637722af3a60c17915d3325604a0435ee92a41b4 (diff)
Add -Wno-unknown-warning-option to ABSL_LLVM_FLAGS to disable warnings on unknown warning flags. (#1008)
Diffstat (limited to 'absl/copts/copts.py')
-rw-r--r--absl/copts/copts.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/absl/copts/copts.py b/absl/copts/copts.py
index 7268c680..0d6c1ec3 100644
--- a/absl/copts/copts.py
+++ b/absl/copts/copts.py
@@ -112,6 +112,9 @@ COPT_VARS = {
"-Wno-implicit-int-conversion",
"-Wno-shorten-64-to-32",
"-Wno-sign-conversion",
+ # Disable warnings on unknown warning flags (when warning flags are
+ # unknown on older compiler versions)
+ "-Wno-unknown-warning-option",
# Don't define min and max macros (Build on Windows using clang)
"-DNOMINMAX",
],