summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-09-16 09:32:27 +0100
committerLennart Poettering <lennart@poettering.net>2011-09-19 23:58:17 +0200
commit869ffc5409442029c500926ddae5cda82737338e (patch)
tree5d08cbd6b0a5dc2385572cb2d0255afcd12c1eec
parent5baf1a81ea59231235144a3e9edbc4438f6965ce (diff)
Disable deprecation warning for __malloc_hook
-rw-r--r--matrace.c3
-rw-r--r--mutrace.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/matrace.c b/matrace.c
index defaf2b..21c63a7 100644
--- a/matrace.c
+++ b/matrace.c
@@ -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"
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"