Add -Wno-unknown-warning-option to ABSL_LLVM_FLAGS to disable warnings on unknown warning flags. (#1008)

pull/1013/head
Oleg Fatkhiev 3 years ago committed by GitHub
parent 637722af3a
commit 665ac5b425
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      absl/copts/GENERATED_AbseilCopts.cmake
  2. 1
      absl/copts/GENERATED_copts.bzl
  3. 3
      absl/copts/copts.py

@ -94,6 +94,7 @@ list(APPEND ABSL_LLVM_FLAGS
"-Wno-implicit-int-conversion" "-Wno-implicit-int-conversion"
"-Wno-shorten-64-to-32" "-Wno-shorten-64-to-32"
"-Wno-sign-conversion" "-Wno-sign-conversion"
"-Wno-unknown-warning-option"
"-DNOMINMAX" "-DNOMINMAX"
) )

@ -95,6 +95,7 @@ ABSL_LLVM_FLAGS = [
"-Wno-implicit-int-conversion", "-Wno-implicit-int-conversion",
"-Wno-shorten-64-to-32", "-Wno-shorten-64-to-32",
"-Wno-sign-conversion", "-Wno-sign-conversion",
"-Wno-unknown-warning-option",
"-DNOMINMAX", "-DNOMINMAX",
] ]

@ -112,6 +112,9 @@ COPT_VARS = {
"-Wno-implicit-int-conversion", "-Wno-implicit-int-conversion",
"-Wno-shorten-64-to-32", "-Wno-shorten-64-to-32",
"-Wno-sign-conversion", "-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) # Don't define min and max macros (Build on Windows using clang)
"-DNOMINMAX", "-DNOMINMAX",
], ],

Loading…
Cancel
Save