CalculiX build error using clang

Joshua Root jmr at macports.org
Tue Jul 26 19:14:15 UTC 2022


On 2022-7-27 02:51 , Christopher Jones wrote:
> 
> clang is correct in this case, gcc is being sloppy.
> 
> Basically you cannot return a value, from a function declared as void… 
> fairly basic stuff really..

I believe the standard requires printing a diagnostic message, but not 
necessarily refusing to compile the program. Not erroring out on code 
this obviously broken really isn't doing anyone any favours though.

- Josh


More information about the macports-dev mailing list