Skip to content

build: sync Bazel CXX warning flags with CMake#610

Open
abhinavgautam01 wants to merge 2 commits into
google:masterfrom
abhinavgautam01:issue-458-bazel-warnings-sync
Open

build: sync Bazel CXX warning flags with CMake#610
abhinavgautam01 wants to merge 2 commits into
google:masterfrom
abhinavgautam01:issue-458-bazel-warnings-sync

Conversation

@abhinavgautam01
Copy link
Copy Markdown
Contributor

Fixes #458
Add the same non-MSVC C++ compile options already applied in CMake to Bazel via src/.bazelrc (-Wno-attributes, -Wno-deprecated-declarations, -Wno-nullability-completeness, -Wno-psabi, -fsized-deallocation), with a short note in CMakeLists to keep the two in sync. MSVC / cl Bazel builds are not in CI here; maintainers on Windows can override via a local/user config if needed.

Comment thread src/.bazelrc Outdated
Add the same -Wno-* and -fsized-deallocation flags used in CMakeLists for non-MSVC toolchains; cross-reference in CMake comment.
@abhinavgautam01 abhinavgautam01 force-pushed the issue-458-bazel-warnings-sync branch from 5942c13 to ff47278 Compare May 10, 2026 19:17
@abhinavgautam01 abhinavgautam01 requested a review from jmr May 10, 2026 19:20
Comment thread src/.bazelrc
Comment thread CMakeLists.txt
Comment thread CMakeLists.txt Outdated
Comment thread src/.bazelrc Outdated
Comment thread CMakeLists.txt
@abhinavgautam01 abhinavgautam01 requested a review from jmr May 11, 2026 01:51
@abhinavgautam01
Copy link
Copy Markdown
Contributor Author

ping @jmr

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.

warning options inconsistent

2 participants