G4Material* Vacuum =
new G4Material("Vacuum", 1., a, density,
kStateGas,temperature,pressure);
I commented out the variable declaration and assignment, but left the allocation call.
Unused property values
src/WCSimConstructMaterials.cc is riddled with what appear to be commented-out data tables. I do not know much about their history, but i would guess that this mess evolved organically, and that some of the tables are commented out rather than removed for ease of selecting alternatives. This is not a good way to handle this kind of thing.
For now, i can comment-out the unused arrays. This looks like it should have some follow-up and review to clean up the vestigial code.
Conclusion
After these changes, there are no more compiler warnings from WCSimConstructMaterials.cc.
However, the vestigial code in it should be reviewed and cleaned up.
Warnings in WCSimConstructMaterials.cc
src/WCSimConstructMaterials.cc
is an implementation file for classWCSimDetectorConstruction
.Warning text
Unused variable
Vacuum
This is a case in which a necessary allocator returns a pointer that is never used directly:
I commented out the variable declaration and assignment, but left the allocation call.
Unused property values
src/WCSimConstructMaterials.cc
is riddled with what appear to be commented-out data tables. I do not know much about their history, but i would guess that this mess evolved organically, and that some of the tables are commented out rather than removed for ease of selecting alternatives. This is not a good way to handle this kind of thing.For now, i can comment-out the unused arrays. This looks like it should have some follow-up and review to clean up the vestigial code.
Conclusion
After these changes, there are no more compiler warnings from WCSimConstructMaterials.cc.
However, the vestigial code in it should be reviewed and cleaned up.
Originally posted by @spradlin in https://github.com/spradlin/WCSim/issues/9#issuecomment-1002284907