Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

cleanup(storage): remove disable_deprecation_warnings.inc headers once deprecated checksum options are removed

Đang mở
#16,545 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
backend

Hướng nghiên cứu

Start by checking issue #16404 to confirm the deprecated checksum and hashing symbols have been removed; this cleanup depends on that work. Then inspect the listed Cloud Storage headers and implementation files for disable_deprecation_warnings.inc and, in signed_url_requests.h, diagnostics_pop.inc. Remove the suppression includes once no deprecated symbols remain, and verify the relevant Bazel builds no longer need them.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

api: storage type: cleanup

Summary

Several Cloud Storage headers and implementation files include google/cloud/internal/disable_deprecation_warnings.inc (and google/cloud/internal/diagnostics_pop.inc in headers) to suppress -Wdeprecated-declarations compiler warnings while maintaining backward compatibility for deprecated checksum/hashing options.

Once the deprecated checksum/hashing symbols (MD5HashValue, Crc32cChecksumValue, UseCrc32cValueOption, UseMD5ValueOption, EnableCrc32cValidationOption, EnableMD5ValidationOption, DisableMD5Hash, DisableCrc32cChecksum) are removed from the codebase (see #16404), remove these .inc diagnostic suppression headers.

Background

  • PR #16311 formally deprecated MD5HashValue, Crc32cChecksumValue, UseCrc32cValueOption, and UseMD5ValueOption in favor of PrecomputedChecksumsOption (and EnableCrc32cValidationOption / EnableMD5ValidationOption / DisableCrc32cChecksum / DisableMD5Hash in favor of UploadChecksumValidationOption and DownloadChecksumValidationOption).
  • To prevent -Wdeprecated-declarations warnings in Bazel builds while continuing to honor these deprecated options internally, disable_deprecation_warnings.inc (and diagnostics_pop.inc) was added to internal headers and implementation files.

Affected Files

Files updated to suppress deprecation diagnostics for internal backward-compatibility plumbing:

  • google/cloud/storage/internal/signed_url_requests.h (disable_deprecation_warnings.inc and diagnostics_pop.inc)
  • google/cloud/storage/parallel_upload.cc
  • google/cloud/storage/internal/async/writer_connection_impl.cc
  • google/cloud/storage/internal/async/connection_impl.cc
  • google/cloud/storage/internal/async/default_options.cc

Additional google/cloud/storage/ files containing disable_deprecation_warnings.inc for deprecated checksum options (see also #16404):

  • google/cloud/storage/hashing_options.h
  • google/cloud/storage/parallel_upload.h
  • google/cloud/storage/client.cc
  • google/cloud/storage/internal/async/checksum_helpers.h
  • google/cloud/storage/internal/checksum_helpers.h
  • google/cloud/storage/internal/connection_impl.cc
  • google/cloud/storage/internal/grpc/stub.cc
  • google/cloud/storage/internal/hash_function.h
  • google/cloud/storage/internal/hash_function.cc
  • google/cloud/storage/internal/hash_validator.cc
  • google/cloud/storage/internal/object_requests.h
  • google/cloud/storage/internal/object_requests.cc
  • google/cloud/storage/internal/rest/stub.cc
Ngôn ngữ chính
C++
Star
659
Fork
471
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
100

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googleapis/google-cloud-cpp

Tất cả issue của googleapis/google-cloud-cpp

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.