Remove all warnings features - #122
Open
nradakovic wants to merge 1 commit into
Open
Conversation
All warnings features are now defined within `score_cpp_policies` so we have to remove them from here.
nradakovic
requested review from
AlexanderLanin,
antonkri and
dcalavrezo-qorix
as code owners
August 20, 2026 12:47
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the built-in warning-flag feature definitions from the Linux and QNX C/C++ toolchain templates, based on the assumption that warning features are now provided externally (e.g., via score_cpp_policies) rather than by this repository’s toolchain implementation.
Changes:
- Removed warning flag groups (minimal/strict/all/
-Werror) from Linux and QNXcc_toolchain_flags.bzl.template. - Removed corresponding warning features and
flags.bzlloads from Linux and QNXcc_toolchain_config.bzl.template. - Removed the warning features from the toolchain
features = [...]lists so they’re no longer registered by default.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| templates/qnx/cc_toolchain_flags.bzl.template | Removes warning flag groups from the QNX flags template. |
| templates/qnx/cc_toolchain_config.bzl.template | Stops loading/defining warning features in the QNX toolchain config template. |
| templates/linux/cc_toolchain_flags.bzl.template | Removes warning flag groups from the Linux flags template. |
| templates/linux/cc_toolchain_config.bzl.template | Stops loading/defining warning features in the Linux toolchain config template. |
Suppressed comments (1)
templates/qnx/cc_toolchain_config.bzl.template:545
- This removes the built-in warning features from the QNX toolchain (previously minimal_warnings was enabled by default). Any consumer using
--features=minimal_warnings|strict_warnings|warnings_as_errorswill now get an unknown-feature error unless those features are injected viaextra_known_features/extra_enabled_features. The repo docs still describe these as toolchain-provided and note QNX defaults (docs/features.md:90-97; docs/migration_guide.md:98-113). Please update the docs/tests/examples to reflect the new injection requirement (e.g., viascore_cpp_policies), or provide a compatibility shim that keeps these feature names registered.
extra_compile_flags = %{extra_compile_flags}
extra_compile_flags_feature = feature(
name = "extra_compile_flags",
enabled = %{extra_compile_flags_switch},
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
285
to
287
| extra_compile_flags = %{extra_compile_flags} | ||
| extra_compile_flags_feature = feature( | ||
| name = "extra_compile_flags", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All warnings features are now defined within
score_cpp_policiesso we have to remove them from here.