diff options
-rw-r--r-- | matrace.c | 3 | ||||
-rw-r--r-- | mutrace.c | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -174,7 +174,10 @@ static void setup(void) { "mutrace: good idea to recompile with -rdynamic enabled since this produces more\n" "mutrace: useful stack traces.\n\n"); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" if (__malloc_hook) { +#pragma GCC diagnostic pop fprintf(stderr, "matrace: Detected non-glibc memory allocator. Your program uses some\n" "matrace: alternative memory allocator (jemalloc?) which is not compatible with\n" @@ -277,7 +277,10 @@ static void setup(void) { "mutrace: good idea to recompile with -rdynamic enabled since this produces more\n" "mutrace: useful stack traces.\n\n"); +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wdeprecated-declarations" if (__malloc_hook) { +#pragma GCC diagnostic pop fprintf(stderr, "mutrace: Detected non-glibc memory allocator. Your program uses some\n" "mutrace: alternative memory allocator (jemalloc?) which is not compatible with\n" |