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/status | |
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/status')
-rw-r--r-- | absl/status/status.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/absl/status/status.cc b/absl/status/status.cc index 4dd5ae06..745ab889 100644 --- a/absl/status/status.cc +++ b/absl/status/status.cc @@ -273,14 +273,12 @@ StatusCode ErrnoToStatusCode(int error_number) { case EFAULT: // Bad address case EILSEQ: // Illegal byte sequence case ENOPROTOOPT: // Protocol not available - case ENOSTR: // Not a STREAM case ENOTSOCK: // Not a socket case ENOTTY: // Inappropriate I/O control operation case EPROTOTYPE: // Protocol wrong type for socket case ESPIPE: // Invalid seek return StatusCode::kInvalidArgument; case ETIMEDOUT: // Connection timed out - case ETIME: // Timer expired return StatusCode::kDeadlineExceeded; case ENODEV: // No such device case ENOENT: // No such file or directory @@ -339,9 +337,7 @@ StatusCode ErrnoToStatusCode(int error_number) { case EMLINK: // Too many links case ENFILE: // Too many open files in system case ENOBUFS: // No buffer space available - case ENODATA: // No message is available on the STREAM read queue case ENOMEM: // Not enough space - case ENOSR: // No STREAM resources #ifdef EUSERS case EUSERS: // Too many users #endif |