[erlang-patches] Silence a misleading warning with some comprehensions

Anthony Ramine <>
Thu Jun 6 22:55:23 CEST 2013


Hello,

When compiling comprehensions with generators which are foldable to 'true', a misleading warning is emitted by sys_core_fold because a clause resulting from the compilation of the comprehension to Core Erlang is not marked as generated by the compiler.

An example of such a comprehension is [ true || true ].

	git fetch https://github.com/nox/otp.git fix-comp-warnings

	https://github.com/nox/otp/compare/erlang:maint...fix-comp-warnings
	https://github.com/nox/otp/compare/erlang:maint...fix-comp-warnings.patch

Regards,

-- 
Anthony Ramine



More information about the erlang-patches mailing list