oort, I would like to warn you about new settings for Makefile script added by dgud for the current master branch. The old warnings are not accepted anymore - they are converted to compile error.
So, for the future rebuilds, it's good idea avoid leave unused vars, functions and so on...
Also, by trying compile your latest source I also got this [now a] compiler error:
it's related to these lines:
You will need to inform where that max come from - as you have you own max code in the plugin source, I think you should use what is suggested:
-compile({no_auto_import,[max/2]}).
I sent you an e-mail.
So, for the future rebuilds, it's good idea avoid leave unused vars, functions and so on...
Also, by trying compile your latest source I also got this [now a] compiler error:
Code:
f:/unixlike/src/wings/PLUGIN~1/IMPORT~1/wpc_yafaray.erl:3443: ambiguous call of overridden auto-imported BIF max/2
- use erlang:max/2 or "-compile({no_auto_import,[max/2]})." to resolve name clash
it's related to these lines:
Code:
export_rgb(F, absorption, {-math:log(max(AbsR, ?NONZERO))/AbsD,
-math:log(max(AbsG, ?NONZERO))/AbsD,
-math:log(max(AbsB, ?NONZERO))/AbsD})
-compile({no_auto_import,[max/2]}).
I sent you an e-mail.