| Summary: | control reaches end of non-void function in pyG4EllipticalCone.cc | ||
|---|---|---|---|
| Product: | Environments | Reporter: | andre.holzner |
| Component: | g4py | Assignee: | Koichi Murakami <Koichi.Murakami> |
| Status: | RESOLVED FIXED | ||
| Severity: | trivial | ||
| Priority: | P5 | ||
| Version: | 10.0 | ||
| Hardware: | All | ||
| OS: | All | ||
actually yes, return is added. |
when building g4py, I see the following warning: pyG4EllipticalCone.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type] indeed, looking at environments/g4py/source/geometry/pyG4EllipticalCone.cc I see the following: G4EllipticalCone* CreateEllipticalCone(const G4String& name, G4double pxSemiAxis, G4double pySemiAxis, G4double zMax, G4double pzTopCut) { new G4EllipticalCone(name, pxSemiAxis,pySemiAxis, zMax, pzTopCut); } probably a 'return' is missing before the 'new'.