Problem 1586 - control reaches end of non-void function in pyG4EllipticalCone.cc
Summary: control reaches end of non-void function in pyG4EllipticalCone.cc
Status: RESOLVED FIXED
Alias: None
Product: Environments
Classification: Unclassified
Component: g4py (show other problems)
Version: 10.0
Hardware: All All
: P5 trivial
Assignee: Koichi Murakami
URL:
Depends on:
Blocks:
 
Reported: 2014-03-08 00:29 CET by andre.holzner
Modified: 2014-05-26 06:02 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description andre.holzner 2014-03-08 00:29:48 CET
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'.
Comment 1 Koichi Murakami 2014-05-26 06:02:11 CEST
actually yes, return is added.