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'.
actually yes, return is added.