diff options
author | Alex Rønne Petersen <alexrp@xamarin.com> | 2014-06-07 19:56:50 +0400 |
---|---|---|
committer | Alex Rønne Petersen <alexrp@xamarin.com> | 2014-06-07 19:56:50 +0400 |
commit | bf703c4a8f95db4859452474499038c7539ea3c7 (patch) | |
tree | 1057d98053647a53e708b7416b5e35c100d954e0 /libgc | |
parent | 69ed93a8fac6c21f5addb44a55d23082a16b9acd (diff) |
Disable -Wreturn-local-addr in libgc/mark_rts.c!GC_approx_sp with GCC 4.8.0+.
Diffstat (limited to 'libgc')
-rw-r--r-- | libgc/mark_rts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libgc/mark_rts.c b/libgc/mark_rts.c index 4074879a71a..58d7db153ca 100644 --- a/libgc/mark_rts.c +++ b/libgc/mark_rts.c @@ -376,7 +376,14 @@ ptr_t GC_approx_sp() # ifdef _MSC_VER # pragma warning(disable:4172) # endif +# if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 408) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wreturn-local-addr" +# endif return((ptr_t)(&dummy)); +# if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 408) + pragma GCC diagnostic pop +# endif # ifdef _MSC_VER # pragma warning(default:4172) # endif |