Skip to content

Suppress remaining Clang warnings on macOS, triggered by gtest-printers.h.#164

Merged
zzcgumn merged 4 commits into
dds-bridge:developfrom
tameware:suppress-gtest-warning
Jun 3, 2026
Merged

Suppress remaining Clang warnings on macOS, triggered by gtest-printers.h.#164
zzcgumn merged 4 commits into
dds-bridge:developfrom
tameware:suppress-gtest-warning

Conversation

@tameware
Copy link
Copy Markdown
Contributor

@tameware tameware commented Jun 2, 2026

No description provided.

@tameware tameware marked this pull request as ready for review June 2, 2026 14:50
@zzcgumn zzcgumn requested a review from Copilot June 2, 2026 21:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to eliminate remaining Clang warning noise on macOS attributed to GoogleTest headers by centralizing warning suppression in Bazel configuration and removing redundant per-target copts entries in test BUILD files.

Changes:

  • Adds a test-only warning suppression flag in .bazelrc to quiet -Wcharacter-conversion from GoogleTest headers.
  • Removes redundant/over-specified copts settings from several cc_test targets.
  • Introduces a DDS_TEST_CPPOPTS alias in CPPVARIABLES.bzl (currently identical to DDS_CPPOPTS).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
library/tests/system/BUILD.bazel Removes redundant empty copts attributes from multiple system tests.
library/tests/moves/BUILD.bazel Removes per-target -std=c++20 in favor of global/toolchain configuration.
CPPVARIABLES.bzl Adds a DDS_TEST_CPPOPTS alias/comment intended for test compilation flags.
.bazelrc Adds test-only warning suppression flags for macOS and Linux test runs.

Comment thread .bazelrc Outdated
Comment thread CPPVARIABLES.bzl Outdated
tameware and others added 3 commits June 3, 2026 07:50
Use GCC-compatible -Wno-conversion instead of Clang’s -Wcharacter-conversion, per Copilot suggestion.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@tameware
Copy link
Copy Markdown
Contributor Author

tameware commented Jun 3, 2026

Copilot suggestions incorporated. Ready for human review.

Copy link
Copy Markdown
Collaborator

@zzcgumn zzcgumn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks neater.

@zzcgumn zzcgumn merged commit ba05a58 into dds-bridge:develop Jun 3, 2026
4 checks passed
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.

3 participants