-
Notifications
You must be signed in to change notification settings - Fork 483
#11681 - Enable -Wshadow-field and investigate actual bugs it finds #11684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2ca312b
Use Wshadow-field on clang (GCC only has Wshadow which is way too noisy)
jmarrec 0d11994
Fix some warnings in Windows-CalcEngine
jmarrec d4ab5ae
Fix two warnings in courrier
jmarrec 851db33
Fix two Wshadow warnings anyways in BCVTB
jmarrec 8f7f10c
Start fixing Wshadow-field warnings
jmarrec 794c2f5
Avoid a shadow and wasted bytes in PlantPipingSystemsManager
jmarrec 00c76d7
Wshadow revealed a big inheritance mistake in SteamBaseboardRadiator
jmarrec 4584390
HWBaseboardRadiator.hh: Same as SteamBaseboardRadiator: should NOT be…
jmarrec 763c454
straightforward fixes in PlantLoopHeatPumpEIR.hh:
jmarrec 85bbbbc
Rename the shadowed xxxFuncYYYCurveIndex -> xxxFuncYYYCurveIndices wh…
jmarrec 1826117
I need a unique oneTimeInitFlag actually here, it does things after t…
jmarrec 2ac5bf6
Last shadow issue: companionHeatPumpCoil redefined as a different poi…
jmarrec 77e7c35
Error on Wshadow-field now
jmarrec a9bfd7a
EnergyPlusFixture functions shouldn't take EnergyPlusData& state when…
jmarrec ae83cce
Avoid a regression in HeatPumpAirToWater, but I think there are bugs …
jmarrec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,7 +129,7 @@ namespace HWBaseboardRadiator { | |
| Real64 LastQBBRadSrc = 0.0; // Need to keep the last value in case we are still iterating | ||
| }; | ||
|
|
||
| struct HWBaseboardDesignData : HWBaseboardParams | ||
| struct HWBaseboardDesignData | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same issue as the Steam counterpart |
||
| { | ||
| // Members | ||
| std::string designName; | ||
|
|
||
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New flag on clang. Like I said, -Wshadow is way too noisy