From 869ffc5409442029c500926ddae5cda82737338e Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 16 Sep 2011 09:32:27 +0100 Subject: Disable deprecation warning for __malloc_hook --- mutrace.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mutrace.c') diff --git a/mutrace.c b/mutrace.c index e1106bb..e1176aa 100644 --- a/mutrace.c +++ b/mutrace.c @@ -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" -- cgit