Ignore dangling-pointer warning

* mps/code/ss.c (StackHot): [MPS_BUILD_GC]: On more platforms, not only
__MINGW32__.
This commit is contained in:
Helmut Eller 2025-10-11 20:18:34 +02:00
parent a7c2557dfc
commit 51e1001a70

View file

@ -31,13 +31,9 @@ SRCID(ss, "$Id$");
* is a hot stack pointer. <design/ss#.sol.stack.hot>.
*/
#ifdef __MINGW32__
#pragma GCC diagnostic push
#if defined(MPS_BUILD_GC) && (__GNUC__ >= 12)
#pragma GCC diagnostic ignored "-Wdangling-pointer"
#endif
#endif
ATTRIBUTE_NOINLINE
void StackHot(void **stackOut)
@ -45,7 +41,7 @@ void StackHot(void **stackOut)
*stackOut = &stackOut;
}
#ifdef __MINGW32__
#if defined(MPS_BUILD_GC) && (__GNUC__ >= 12)
#pragma GCC diagnostic pop
#endif