Skip to content

Tests: silence macOS Bazel/clang warnings#623

Open
abhinavgautam01 wants to merge 1 commit into
google:masterfrom
abhinavgautam01:issue-493-macos-bazel-warnings
Open

Tests: silence macOS Bazel/clang warnings#623
abhinavgautam01 wants to merge 1 commit into
google:masterfrom
abhinavgautam01:issue-493-macos-bazel-warnings

Conversation

@abhinavgautam01
Copy link
Copy Markdown
Contributor

Fixes noisy warnings reported when building/tests compile under Clang on macOS (see #493).

  • exactfloat_test: avoid unused scalbn/scalbln wrappers on Apple builds (those tests are already gated); use ldexp inside logb.
  • s2closest_edge_query_test: drop redundant Result alias; migrate encoded-index benchmark decode path off deprecated LazyDecodeShapeFactory(Decoder*).
  • s2lax_polygon_shape_test: use const auto& structured bindings to avoid tuple copies in range-for.
  • s2shapeutil_coding_test, encoded_s2shape_index_test, mutable_s2shape_index_test: migrate to non-deprecated FullDecodeShapeFactory/LazyDecodeShapeFactory overloads that take S2Error, and absl::HexStringToBytes’s bool-returning overload. Validation: bazel test on affected targets (CI-style matrix preferred).

- Gate exactfloat scalbn/scalbln helpers on non-Apple; use ldexp in logb.
- Drop redundant Result alias; fix structured-binding loop reference.
- Migrate tests off deprecated decode factories and HexStringToBytes overload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant