Fix CMake flags that stopped applying #270
All Vouch review confidence checks passed
Residual risk 0.09 = Change Risk (0.18) × (1 − Review Confidence (0.48)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.18 · 12 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.00 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.350
Diff Size
diff_size
0.153
Real PR Conversation Timeline
2 items
Approved
Approved these changes.
compnerd
augiekim
There are a few issues on CMakeLists.txt that make some flags being stopped applying.
This is due to the changes since CMake 3.15.
List of issues and fixes
CMake 3.15+ no longer puts
/W3inCMAKE_CXX_FLAGS(policy CMP0092) - Fix: the flag directly instead of replacing it.CMake 3.15+ selects the runtime with
CMAKE_MSVC_RUNTIME_LIBRARY(policy CMP0091) instead of/MDinCMAKE_CXX_FLAGS_<CONFIG>After properly applying /W4, the CI build shows some warnings worth checking.
Warning | Count | Meaning | Risk
-- | -- | -- | --
C4505 | 270 | unused static function removed | Low
C4100 | 119 | unreferenced parameter | Low
C4456 | 54 | a declaration hides an earlier local with the same name | High
C4244 | 16 | int → char conversion may lose data | Low
C4189 | 4 | local variable set but never used | Low