← Back to team overview

yade-dev team mailing list archive

Re: Make Law2's return bool?

 

After your answer I tested directly the "yade compilation" : if you put

int test()
{
  if (0)
    return 2;
}

in some piece of code, you will get a warning, but no error.

Still something, but not 100% efficient (for this specific goal reminding people not forgetting their interactions.)


Le 29/01/2014 10:01, Anton Gladky a écrit :
Hi Jerome,

2014-01-29 Jérôme Duriez <jerome.duriez@xxxxxxxxxxxxxxx>:
They could instead also forget to define the return value...
(apparently this would not return a compiling error, isn't it ?)
we are using relatively strict compiler-settings [1], so it should
return an error, or at least a warning, especially clang. But I
did not check.

[1] https://github.com/yade/trunk/blob/master/CMakeLists.txt#L81

Anton

_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~yade-dev
More help   : https://help.launchpad.net/ListHelp


--
Jérôme Duriez
Post-Doctorant UJF
Laboratoire 3SR
Bureau E139 - 04.56.52.86.30




References