Confuse GCC data-flow analysis to remove warning: function returns address of local variable

This commit is contained in:
Jay McCarthy 2010-05-18 09:09:44 -05:00
parent 26850e9b9f
commit b66d31e7c1

View File

@ -369,7 +369,8 @@ ptr_t GC_approx_sp(void)
# ifdef _MSC_VER
# pragma warning(disable:4172)
# endif
return((ptr_t)(&dummy));
ptr_t addr = ((ptr_t)(&dummy));
return addr;
# ifdef _MSC_VER
# pragma warning(default:4172)
# endif