Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

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

Offen
#16,545 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Vorherrschende Sprache
C++
Sterne
659
Forks
471
Ø Merge
1 T. 10 Std.
Gemergte PRs (30 T.)
100

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus googleapis/google-cloud-cpp

Alle Issues in googleapis/google-cloud-cpp

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.