Comment 4 for bug 1026073

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 1026073] Re: "calm function" inside source code

2012/7/18 Christian Jakob <email address hidden>:
> I think I did it, but there is a compilation warning:
>
> /home/me/YADE/trunk/pkg/dem/Shop.cpp: In static member function ‘static Real Shop::calm(const boost::shared_ptr<Scene>&, int)’:
> /home/me/YADE/trunk/pkg/dem/Shop.cpp:838: warning: no return statement in function returning non-void
>
> Shall I say "return 0;" at the end of the function?

Why not to declare it as "void", if you are not going to return any value?

Anton