mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Ignore dangling-pointer warning
* mps/code/ss.c (StackHot): [MPS_BUILD_GC]: On more platforms, not only __MINGW32__.
This commit is contained in:
parent
a7c2557dfc
commit
51e1001a70
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue