Detect uninitialized variables in CMake files. - #6247
Conversation
mathbunnyru
left a comment
There was a problem hiding this comment.
@pratikmankawde could we please not introduce style changes to this PR?
It makes it less focused and more difficult to read
Yes, I will revert the style changes. |
Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
f308b01 to
d10ddb7
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #6247 +/- ##
=======================================
Coverage 79.4% 79.4%
=======================================
Files 839 839
Lines 71619 71619
Branches 8238 8237 -1
=======================================
+ Hits 56846 56848 +2
+ Misses 14773 14771 -2 🚀 New features to boost your workflow:
|
| $<$<BOOL:${is_xcode}>: | ||
| --system-header-prefix="google/protobuf" | ||
| -Wno-deprecated-dynamic-exception-spec | ||
| > |
There was a problem hiding this comment.
Can we confirm this is still needed? Does anyone use Xcode to develop?
There was a problem hiding this comment.
Who can confirm this?
Co-authored-by: Bart <bthomee@users.noreply.github.com>
Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
…f github.com:XRPLF/rippled into pratik/Detect-uninitialized-variables-in-CMake-files
There were a few uninitialized variables in CMake files. This change will make sure we always check if a variable has been initialized before using them, or in come cases initialize them by default. This change will raise an error on CI if a developer introduced an uninitialized variable in CMake files.
High Level Overview of Change
Detects and raises an error for un-initialized CMake variables.
Context of Change
We had a-few uninitialized variables in CMake files. This change will make sure we always check if a variable has been initiazed before using them. Or in come cases default initialize them. This change will raise an error on CI if a dev. introduced an un-initialized variable in CMake files.
Type of Change
.gitignore, formatting, dropping support for older tooling)API Impact
None
Test Plan
Tested locally.