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 threadsrc/.bazelrc Outdated
Add the same -Wno-* and -fsized-deallocation flags used in CMakeLists for non-MSVC toolchains; cross-reference in CMake comment.
@abhinavgautam01
abhinavgautam01force-pushed the issue-458-bazel-warnings-sync branch from 5942c13 to ff47278CompareMay 10, 2026 19:17
@abhinavgautam01
abhinavgautam01 requested a review from jmrMay 10, 2026 19:20
Comment threadsrc/.bazelrc
Comment threadCMakeLists.txt
Comment threadCMakeLists.txt Outdated
Comment threadsrc/.bazelrc Outdated
Comment threadCMakeLists.txt
@abhinavgautam01
abhinavgautam01 requested a review from jmrMay 11, 2026 01:51
@abhinavgautam01

Copy link
Copy Markdown
ContributorAuthor

ping @jmr

Sign up for freeto 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

@abhinavgautam01@jmr