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?
2012/7/18 Christian Jakob <email address hidden>: YADE/trunk/ pkg/dem/ Shop.cpp: In static member function ‘static Real Shop::calm(const boost:: shared_ ptr<Scene> &, int)’: YADE/trunk/ pkg/dem/ Shop.cpp: 838: warning: no return statement in function returning non-void
> I think I did it, but there is a compilation warning:
>
> /home/me/
> /home/me/
>
> 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