Skip to content
Snippets Groups Projects
Commit 2d5be9b0 authored by Philippe Canal's avatar Philippe Canal
Browse files

Don't hide warning from header file

parent d0da02fc
No related branches found
No related tags found
No related merge requests found
...@@ -11,10 +11,6 @@ ...@@ -11,10 +11,6 @@
#ifndef ROOT_TMemStatBacktrace #ifndef ROOT_TMemStatBacktrace
#define ROOT_TMemStatBacktrace #define ROOT_TMemStatBacktrace
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic ignored "-Wframe-address"
#endif
#define _INIT_TOP_STACK extern void *g_global_stack_end; #define _INIT_TOP_STACK extern void *g_global_stack_end;
#define _GET_CALLER_FRAME_ADDR g_global_stack_end = __builtin_frame_address(1); #define _GET_CALLER_FRAME_ADDR g_global_stack_end = __builtin_frame_address(1);
......
...@@ -28,6 +28,12 @@ ...@@ -28,6 +28,12 @@
#define SUPPORTS_MEMSTAT #define SUPPORTS_MEMSTAT
#endif #endif
#if defined(__GNUC__) && !defined(__clang__)
#if __GNUC__ > 5
#pragma GCC diagnostic ignored "-Wframe-address"
#endif
#endif
// This is a global variable set at MSManager init time. // This is a global variable set at MSManager init time.
// It marks the highest used stack address. // It marks the highest used stack address.
void *g_global_stack_end = NULL; void *g_global_stack_end = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment