Fix createsubsys script#4187
Merged
pinkenburg merged 4 commits intosPHENIX-Collaboration:masterfrom Feb 20, 2026
Merged
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughThese changes modify Perl scripts that generate build configurations and C++ code. They introduce stricter compiler warning flags (-Wextra, -Wshadow), apply the Changes
Possibly related PRs
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Types of changes
What kind of change does this PR introduce? (Bug fix, feature, ...)
This PR updates the compiler flags in the perl script which create subsysreco/G4 modules. perl scripts are not checked [skip-ci]
TODOs (if applicable)
Links to other PRs in macros and calibration repositories (if applicable)
Fix createsubsys script
Motivation / Context
These Perl scripts (
CreateSubsysRecoModule.plandCreateG4Subsystem.pl) are code generators used by developers to create template modules for new SubsysReco and G4 subsystem modules within the sPHENIX software framework. This PR updates the compiler flags and include handling in the auto-generated build configuration files to align with repository standards and best practices.Key Changes
-Wall -Wextra -Wshadow -Werrorinstead of just-Wall -Werror), enabling detection of additional potential issues such as unused variables and variable shadowing.-isysteminstead of-Ifor external dependencies (OFFLINE_MAIN/includeandROOTSYS/include), which suppresses compiler warnings originating from system/external headers while maintaining normal warnings for project code.Potential Risk Areas
-Wextraand-Wshadowmay cause previously-generated or user-created modules to fail compilation if they contain code triggering these new warnings. Developers regenerating modules or creating new ones should review and resolve any newly-reported warnings.-isystemis generally safer (it treats includes as system headers), any edge cases in header search ordering or macro handling between-Iand-isystemcould theoretically cause differences in behavior for newly-generated code.Notes