Skip to content

Suppress gtest character-conversion warning for build, not only test#190

Open
tameware wants to merge 1 commit into
dds-bridge:developfrom
tameware:broader-fix-gtest-warning
Open

Suppress gtest character-conversion warning for build, not only test#190
tameware wants to merge 1 commit into
dds-bridge:developfrom
tameware:broader-fix-gtest-warning

Conversation

@tameware

Copy link
Copy Markdown
Contributor

The -Wno-character-conversion / -Wno-conversion suppressions were scoped to the test command, so they only took effect under bazel test. Plain bazel build of test targets (and tooling that compiles GoogleTest) still emitted the gtest-printers.h warning. Move the flags to the build config, which is inherited by test, run, etc., so the warning is suppressed in both cases.

The -Wno-character-conversion / -Wno-conversion suppressions were scoped to
the `test` command, so they only took effect under `bazel test`. Plain
`bazel build` of test targets (and tooling that compiles GoogleTest) still
emitted the gtest-printers.h warning. Move the flags to the `build` config,
which is inherited by `test`, `run`, etc., so the warning is suppressed in
both cases.

Co-authored-by: Cursor <cursoragent@cursor.com>
@tameware tameware marked this pull request as ready for review June 15, 2026 22:53
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