-
Notifications
You must be signed in to change notification settings - Fork 715
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
[Misc] Add compiler warning option -Wshadow
and -Wshadow-field
#3055
base: master
Are you sure you want to change the base?
Conversation
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR. This compilation of summaries gives a comprehensive view of a broad set of changes in the codebase, mainly focusing on introducing new compiler warning options Potential issues include the introduction of Furthermore, altering the inheritance from public to private of 'FdHolder' in 'Poller' class could affect code sections depending on The summaries also highlight several variable renaming and refactoring in various classes to address shadowing warnings, possibly affecting backward compatibility and requiring adjustments in external code and documentation. Lastly, concerns are expressed about the rationale behind removing and reordering certain warning flags and their potential consequences. For instance, removing In conclusion, while these changes appear intended to increase code robustness and improve housekeeping, their impacts could be far-reaching and potentially problematic. Detailed justifications for these changes, backed with rigorous testing and appropriate continuous integration checks, are recommended to ensure a smooth and error-free transition. DetailsCommit 6bd29c7ada492f30b101d4e05f39bfd63fc6b3f9Summary of Key Changes:
Potential Problems:
Commit 574562d1586902ba6ef0ea7c148eb92d9d2c6556This pull request introduces two main changes in the code:
Now, when analyzing the potential problems or downsides:
In conclusion, this pull request helps add more robustness to the code by introducing the shadowing warning but it also removes an existing Commit c9177aead1086b5c81a75c18eee9009161ebd9a6Summary of Key Changes:
Key changes:
Potential Problems:
Commit 27ff4897fe64014ae3f23a07e16572ad9d4ca7faThe patch consists of a single change within the file This modification has been made to prevent a shadowing error. In the original code, a variable with the name However, before approving this change, one should consider if renaming the variable to Also, as this patch addresses a specific issue related to the warning option, a evaluation should be run to check whether there are other instances of variable shadowing throughout the code that would trigger warnings once the Commit 2ec110a25978f86b52936aefb4ed998faa5a3573This pull request contains code changes related to adding a compiler warning option The primary contributor is Shen-Ta Hsieh. The change consists of 77 insertions and 75 deletions in the code. The change can be mainly categorized into two broad areas:
Some potential problems and things to look out for include:
Commit 6666b60f1b8ea0fc564085d20f3b912ae04ccf7bSummary: Potential Problems:
To conclude, it would be beneficial if the reasons behind these changes could be provided. Furthermore, appropriate code testing and continuous integration checks should take place to ensure there are no adverse effects due to these adjustments. |
Signed-off-by: Shen-Ta Hsieh <beststeve@secondstate.io>
* Add warning for declaration shadowing another declaration. Signed-off-by: Shen-Ta Hsieh <beststeve@secondstate.io>
3ffd1ba
to
574562d
Compare
Signed-off-by: Shen-Ta Hsieh <beststeve@secondstate.io>
Signed-off-by: Shen-Ta Hsieh <beststeve@secondstate.io>
Signed-off-by: Shen-Ta Hsieh <beststeve@secondstate.io>
Signed-off-by: Shen-Ta Hsieh <beststeve@secondstate.io>
Fd
in INode leaking to Poller interfaceConf