[erlang-patches] Use isfinite() instead of finite() when available

Anthony Ramine n.oxyde@REDACTED
Fri Nov 15 02:53:13 CET 2013


Hello,

This fixes the following warning on Mac OS X 10.9 Mavericks:

hipe/hipe_bif0.c:1025:10: warning: 'finite' is deprecated: first deprecated in OS X 10.9 [-Wdeprecated-declarations]
    if (!finite(p->hipe.float_result)) {
         ^
/usr/include/math.h:718:12: note: 'finite' declared here
extern int finite(double) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_9, __IPHONE_NA, __IPHONE_NA);
           ^

	git fetch https://github.com/nox/otp isfinite

	https://github.com/nox/otp/compare/isfinite
	https://github.com/nox/otp/compare/isfinite.patch

Regards,

-- 
Anthony Ramine




More information about the erlang-patches mailing list