Skip to content

✨ [cmake] Enable warnings as errors in CMake directly - #572

Merged
SavenkovIgor merged 1 commit into
mainfrom
cmake-warnings-as-errors
Oct 3, 2026
Merged

SavenkovIgor merged 1 commit into
mainfrom
cmake-warnings-as-errors

Conversation

@SavenkovIgor

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI balanced review requested due to automatic review settings October 3, 2026 13:09
@SavenkovIgor
SavenkovIgor enabled auto-merge (squash) October 3, 2026 13:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused change preserves existing behavior using CMake’s portable warning-as-error support.

Review effort: Balanced
Findings: None

What changed in this PR

Moves warning-as-error handling from a compiler-specific flag to CMake’s built-in mechanism.

Changes:

  • Enables CMAKE_COMPILE_WARNING_AS_ERROR globally.
  • Removes the explicit -Werror option.

Testing: Not run during review.

File Description
CMakeLists.txt Enables CMake-managed warning errors.
cmake/​Warnings.cmake Removes the redundant compiler flag.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@SavenkovIgor
SavenkovIgor merged commit 3e3faab into main Oct 3, 2026
6 checks passed
@SavenkovIgor
SavenkovIgor deleted the cmake-warnings-as-errors branch October 3, 2026 13:18
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.

2 participants