diff options
author | Derek Mauro <dmauro@google.com> | 2024-03-27 09:12:04 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-03-27 09:13:17 -0700 |
commit | e8b549b7d336a04ee140112012309379ad1c9c99 (patch) | |
tree | d6465ab2c07edde9fc0d13bb029b89df3b4b88ff /absl/copts | |
parent | b70ad841380f60e8e825019bdc1e63f7c071843f (diff) | |
download | abseil-e8b549b7d336a04ee140112012309379ad1c9c99.tar.gz abseil-e8b549b7d336a04ee140112012309379ad1c9c99.tar.bz2 abseil-e8b549b7d336a04ee140112012309379ad1c9c99.zip |
Remove deprecated errno constants from the absl::Status mapping
ENOSTR, ETIME, ENODATA, and ENOSR are deprecated by POSIX and C++23.
This change also turns on the deprecation warnings used by Chromium.
See also:
https://wg21.link/LWG3869
https://github.com/llvm/llvm-project/pull/80542
https://buganizer.corp.google.com/issues/331100926
PiperOrigin-RevId: 619551374
Change-Id: Ica8d5008cbee52ce88d58a1fcb79dbe794045bae
Diffstat (limited to 'absl/copts')
-rw-r--r-- | absl/copts/GENERATED_AbseilCopts.cmake | 2 | ||||
-rw-r--r-- | absl/copts/GENERATED_copts.bzl | 2 | ||||
-rw-r--r-- | absl/copts/copts.py | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/absl/copts/GENERATED_AbseilCopts.cmake b/absl/copts/GENERATED_AbseilCopts.cmake index 24b6175a..d96bd839 100644 --- a/absl/copts/GENERATED_AbseilCopts.cmake +++ b/absl/copts/GENERATED_AbseilCopts.cmake @@ -88,6 +88,7 @@ list(APPEND ABSL_LLVM_FLAGS "-Wcast-qual" "-Wconversion" "-Wdead-code-aggressive" + "-Wdeprecated-pragma" "-Wfloat-overflow-conversion" "-Wfloat-zero-conversion" "-Wfor-loop-analysis" @@ -128,6 +129,7 @@ list(APPEND ABSL_LLVM_TEST_FLAGS "-Wcast-qual" "-Wconversion" "-Wdead-code-aggressive" + "-Wdeprecated-pragma" "-Wfloat-overflow-conversion" "-Wfloat-zero-conversion" "-Wfor-loop-analysis" diff --git a/absl/copts/GENERATED_copts.bzl b/absl/copts/GENERATED_copts.bzl index 9f59be4f..0a344236 100644 --- a/absl/copts/GENERATED_copts.bzl +++ b/absl/copts/GENERATED_copts.bzl @@ -89,6 +89,7 @@ ABSL_LLVM_FLAGS = [ "-Wcast-qual", "-Wconversion", "-Wdead-code-aggressive", + "-Wdeprecated-pragma", "-Wfloat-overflow-conversion", "-Wfloat-zero-conversion", "-Wfor-loop-analysis", @@ -129,6 +130,7 @@ ABSL_LLVM_TEST_FLAGS = [ "-Wcast-qual", "-Wconversion", "-Wdead-code-aggressive", + "-Wdeprecated-pragma", "-Wfloat-overflow-conversion", "-Wfloat-zero-conversion", "-Wfor-loop-analysis", diff --git a/absl/copts/copts.py b/absl/copts/copts.py index 64e6f8a5..1aa09249 100644 --- a/absl/copts/copts.py +++ b/absl/copts/copts.py @@ -48,6 +48,7 @@ ABSL_LLVM_FLAGS = [ "-Wcast-qual", "-Wconversion", "-Wdead-code-aggressive", + "-Wdeprecated-pragma", "-Wfloat-overflow-conversion", "-Wfloat-zero-conversion", "-Wfor-loop-analysis", |