[Ada] Disable warning about unsafe use of __builtin_frame_address
gcc/ada/ * tracebak.c [generic implementation]: Add pragma GCC diagnostic to disable warning about __builtin_frame_address.
This commit is contained in:
parent
6c8b9020a8
commit
0cb1b7276d
@ -690,6 +690,9 @@ __gnat_backtrace (void ** traceback __attribute__((unused)),
|
||||
|
||||
#elif defined (USE_GENERIC_UNWINDER)
|
||||
|
||||
/* No warning since the cases where FRAME_LEVEL > 0 are known to work. */
|
||||
#pragma GCC diagnostic ignored "-Wframe-address"
|
||||
|
||||
#ifndef CURRENT_STACK_FRAME
|
||||
# define CURRENT_STACK_FRAME ({ char __csf; &__csf; })
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user